error using dynare: preprocessing failed

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

error using dynare: preprocessing failed

Postby cfg_stellies » Sat Sep 27, 2014 12:44 pm

Hi all,

I'm trying to replicate Iacoviello & Minetti's 2006 two country RBC model with domestic and foreign lenders.
However, each time I try to run the code in matlab (i.e. dynare "filename".mod) it returns the following error message:

Starting Dynare (version 4.4.1).
Starting preprocessing of the model file ...
ERROR: Could not open file: "filename".mod

Error using fprintf
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in dynare (line 162)
fprintf(fid, '%s', result);

I have never received this error message before even though I am follow the exact same steps in attempting to run the model. Any help would be greatly appreciated. Attached is my .mod file in case it is the source of the problem.
Attachments
monday1.mod
(9.23 KiB) Downloaded 59 times
cfg_stellies
 
Posts: 4
Joined: Sat Sep 27, 2014 12:24 pm

Re: error using dynare: preprocessing failed

Postby jpfeifer » Sat Sep 27, 2014 1:14 pm

Why do you have the quote signs in your call to the mod-file, i.e. the " "?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: error using dynare: preprocessing failed

Postby cfg_stellies » Sat Sep 27, 2014 1:58 pm

The quote signs were just there as place holders for the actual variable names. I've solved the issue now, made a rookie error in that I saved my .mod file in a folder for which I didn't have admin rights. Soon as I changed that dynare ran as usual. Appreciate the response!
cfg_stellies
 
Posts: 4
Joined: Sat Sep 27, 2014 12:24 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron