including code withing 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.

including code withing a .mod file

Postby Simon » Wed Sep 28, 2011 10:17 pm

Hello everyone,

i have a very simple question concerning the structure of a dynare mod-file: Is it possible to swap some code into another file, which can be included in the .mod-file at a certain position? I would like to decrease the size of my .mod-file, since i use some bulky sourcecode to generate the output.

Many many thanks,
Simon
Simon
 
Posts: 12
Joined: Wed Dec 22, 2010 12:58 am

Re: including code withing a .mod file

Postby SébastienVillemot » Wed Oct 12, 2011 4:54 pm

Yes, use the "@#include" directive of the macro-processor. Have a look at the "macroprocessor.pdf" file or to the reference manual (both in the documentation directory of Dynare).
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: including code withing a .mod file

Postby Simon » Mon Oct 17, 2011 10:22 am

thank you very much, this was of great help.
Simon
 
Posts: 12
Joined: Wed Dec 22, 2010 12:58 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests

cron