Page 1 of 1
Saving as a .mod file
Posted:
Wed Sep 25, 2013 6:28 pm
by ericman967
Hello, I'm using Octave with Dynare and Notepad++ to edit the code for Dynare, but I cannot save in the .mod or .dyn format required by Dynare. Are there any editors that can save in .mod format? Or is there an easier way to change the file to .mod?
Re: Saving as a .mod file
Posted:
Wed Sep 25, 2013 7:19 pm
by jpfeifer
A Dynare mod-file is a normal ASCII text file saved with the ending .mod instead of .txt. Any editor can do this.
Re: Saving as a .mod file
Posted:
Wed Sep 25, 2013 7:41 pm
by ericman967
I realize this should be easy, but I get a preprocessing failure when I try to run my file. I don't see the options in the editor when I select "save as". I can choose "all types" and then end the filename with ".mod", but it still doesn't work.
Re: Saving as a .mod file
Posted:
Wed Sep 25, 2013 8:12 pm
by jpfeifer
Please post the file and the error message.
Re: Saving as a .mod file
Posted:
Wed Sep 25, 2013 8:33 pm
by ericman967
The error message:
ERROR: new3.mod:19.1: Unknown symbol: a
Starting Dynare <version 4.3.3>.
Starting preprocessing of the model file ...
error: DYNARE: preprocessing failed
error: called from:
error: c:\dynare\4.3.3\matlab\dynare.m at line 114, column 1
octave:2>
Re: Saving as a .mod file
Posted:
Wed Sep 25, 2013 8:45 pm
by jpfeifer
This is not a problem with the editor. Dynare is already running. The issue is in line 19, row 1. The variable a has not been defined. That's why it says "unknown symbol". Just follow the error messages.
Re: Saving as a .mod file
Posted:
Wed Sep 25, 2013 8:51 pm
by ericman967
I see. Thank you very much!