Page 1 of 1

including code withing a .mod file

PostPosted: Wed Sep 28, 2011 10:17 pm
by Simon
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

Re: including code withing a .mod file

PostPosted: Wed Oct 12, 2011 4:54 pm
by SébastienVillemot
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).

Re: including code withing a .mod file

PostPosted: Mon Oct 17, 2011 10:22 am
by Simon
thank you very much, this was of great help.