Saving as a .mod file

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?

A Dynare mod-file is a normal ASCII text file saved with the ending .mod instead of .txt. Any editor can do this.

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.

Please post the file and the error message.

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>
new3.mod (667 Bytes)

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.

I see. Thank you very much!