Page 1 of 1

error using dynare: preprocessing failed

PostPosted: Sat Sep 27, 2014 12:44 pm
by cfg_stellies
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.

Re: error using dynare: preprocessing failed

PostPosted: Sat Sep 27, 2014 1:14 pm
by jpfeifer
Why do you have the quote signs in your call to the mod-file, i.e. the " "?

Re: error using dynare: preprocessing failed

PostPosted: Sat Sep 27, 2014 1:58 pm
by cfg_stellies
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!