# \# sign in Smets Wouters 2007 mod file

**URL:** <https://forum.dynare.org/t/sign-in-smets-wouters-2007-mod-file/2166>\
**Category:** Dynare help (legacy posts)\
**Created:** [27 September 2011 15:53 UTC](https://forum.dynare.org/t/sign-in-smets-wouters-2007-mod-file/2166 "2011-09-27T15:53:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reubenpjacob](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@reubenpjacob](https://forum.dynare.org/u/reubenpjacob)\
**Post date:** [27 September 2011 15:53 UTC](https://forum.dynare.org/t/sign-in-smets-wouters-2007-mod-file/2166/1 "2011-09-27T15:53:38Z")

</div>

i am trying to replicate the SW AER 2007 paper using dynare version 4.2.0  
in the mod file, SW use a command  
#usmodel\_stst  
(to call the m file in the syntax modfilename\_stst that defines steady state restrictions on the estimated parameters)

however this seems to be causing the error message:

ERROR: usmodel.mod:83.1: syntax error, unexpected ‘#’, expecting EQUAL

has anybody encountered this problem?

thanks  
reuben

---

<div class="post-metadata">

**Author:** ![sebastien](https://forum.dynare.org/user_avatar/forum.dynare.org/sebastien/32/19973_2.png) [@sebastien](https://forum.dynare.org/u/sebastien)\
**Post date:** [12 October 2011 16:08 UTC](https://forum.dynare.org/t/sign-in-smets-wouters-2007-mod-file/2166/2 "2011-10-12T16:08:48Z")

</div>

I guess that this was written using Dynare 3. This construct is no longer valid under Dynare 4, but you may obtain the same result using the “external\_function” command.

I cannot be more precise without more details on your problem (I don’t have the MOD file you’re talking about).

Best,

---

<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:** [19 April 2012 06:41 UTC](https://forum.dynare.org/t/sign-in-smets-wouters-2007-mod-file/2166/3 "2012-04-19T06:41:55Z")

</div>

There is a Dynare 4 version here  
[[Syntax shock\_decomposition](https://forum.dynare.org/t/syntax-shock-decomposition/1458/5))
