i had just installed DYNARE and I am trying to create my first .mod file.
I followed the instructions from dynare-manual (installation and adding path to the matlab), but when I tryed to create my first dynare file in Matlab, I recived this error message.
Using 64-bit preprocessor
Starting Dynare (version 4.5.6).
Starting preprocessing of the model file …
ERROR: myfile.mod: line 3, cols 1-0: syntax error, unexpected $end
Error using dynare (line 229)
DYNARE: preprocessing failed
Using 64-bit preprocessor
Starting Dynare (version 4.5.6).
Starting preprocessing of the model file …
ERROR: myfile.mod: line 3, cols 1-0: syntax error, unexpected $end
Error using dynare (line 229)
DYNARE: preprocessing failed
if your file has a dyn extension (only dyn or mod extensions are allowed).
Second, the dynare command does not create a new mod file as you seem to believe. You need to use a proper mod file. Dynare is distributed with a subfolder named examples. Can you run example1.mod? If yes can you post your mod file.
You can create your first mod file by copying the contents of example1.mod into a matlab script and saving the script with a .mod extension. (Use save…all files)
Reuben