Page 1 of 1

Macro-processor language and loops

PostPosted: Wed Jul 06, 2016 2:15 pm
by Niki
Dear all,

I am having a question concerning macro-processing language and loops in Dynare 4.4.3. I am using the macro-processing language to define new macro-processor variables, where I can have conditional statements on thereafter in the mod file. My question is whether I can have loops on the macro-processor variable values, outside of the mod file, in a separate m file. So for example, for different values of these macro-processor variables, run the dynare *.mod file.

Thank you for your help in advance.

Best,
Niki

Re: Macro-processor language and loops

PostPosted: Thu Jul 07, 2016 8:55 am
by jpfeifer
No, that is not possible, but you can use Matlab variables outside of the mod-file and pass them to the mod-file to set preprocessor variables. That should to the trick. This can be done with the
Code: Select all
-D
switch in the command line. See http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=8083

Re: Macro-processor language and loops

PostPosted: Tue Aug 02, 2016 11:58 am
by Niki
Dear Johannes,

Thank you so much. It works perfectly.

Kind regards,
Niki