Saving as a .mod file

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.

Saving as a .mod file

Postby ericman967 » Wed Sep 25, 2013 6:28 pm

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?
ericman967
 
Posts: 5
Joined: Wed Sep 25, 2013 1:30 am

Re: Saving as a .mod file

Postby jpfeifer » Wed Sep 25, 2013 7:19 pm

A Dynare mod-file is a normal ASCII text file saved with the ending .mod instead of .txt. Any editor can do this.
------------
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: Saving as a .mod file

Postby ericman967 » Wed Sep 25, 2013 7:41 pm

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.
ericman967
 
Posts: 5
Joined: Wed Sep 25, 2013 1:30 am

Re: Saving as a .mod file

Postby jpfeifer » Wed Sep 25, 2013 8:12 pm

Please post the file and the error message.
------------
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: Saving as a .mod file

Postby ericman967 » Wed Sep 25, 2013 8:33 pm

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>
Attachments
new3.mod
Dynare file
(667 Bytes) Downloaded 116 times
ericman967
 
Posts: 5
Joined: Wed Sep 25, 2013 1:30 am

Re: Saving as a .mod file

Postby jpfeifer » Wed Sep 25, 2013 8:45 pm

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.
------------
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: Saving as a .mod file

Postby ericman967 » Wed Sep 25, 2013 8:51 pm

I see. Thank you very much!
ericman967
 
Posts: 5
Joined: Wed Sep 25, 2013 1:30 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests