# Setting macroprocessor options externally

**URL:** <https://forum.dynare.org/t/setting-macroprocessor-options-externally/5628>\
**Category:** Macro-language\
**Created:** [7 July 2016 04:27 UTC](https://forum.dynare.org/t/setting-macroprocessor-options-externally/5628 "2016-07-07T04:27:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [7 July 2016 08:34 UTC](https://forum.dynare.org/t/setting-macroprocessor-options-externally/5628/2 "2016-07-07T08:34:00Z")

</div>

You can use the -D command line switch to directly pass preprocessor variables. See  
[[Loop over certain antizipation horizons](https://forum.dynare.org/t/loop-over-certain-antizipation-horizons/5443/1)) for an example

---

_[View the full topic](https://forum.dynare.org/t/setting-macroprocessor-options-externally/5628)._
