Page 1 of 1

ERROR: syntax error, unexpected $end

PostPosted: Thu May 23, 2013 9:13 pm
by Gitte
Hi,

I am trying to run my model in dynare version 4.3.0, but I keep getting the error message below.

Starting preprocessing of the model file ...
ERROR: rot.mod:1.1: syntax error, unexpected $end

Error using dynare (line 114)
DYNARE: preprocessing failed


I am confused if this has to do with an error related to a missing/inapropriate "end;" or if it has something to do with the first line (as it says 1.1:syntax error)?
I have spent hours looking through the code trying to find the error, so I am desperately hoping that one of you can tell me what is wrong??

Thank you in advance,
Gitte

Re: ERROR: syntax error, unexpected $end

PostPosted: Fri May 24, 2013 2:12 pm
by jpfeifer
Try upgrading Dynare. Your mod-file runs on my machine, except for the later problem that
The following endogenous variables aren't present at the current period in the model:
pi_f_hat
t_hat

Re: ERROR: syntax error, unexpected $end

PostPosted: Wed Aug 07, 2013 12:36 pm
by selima
Good morning I have dynare 4.3.2 but I have the same error
ERROR: NKKtaylord.mod:217.1: syntax error, unexpected $end

??? Error using ==> dynare at 114
DYNARE: preprocessing failed
please can you tell me what is the problem? thank you very much

Re: ERROR: syntax error, unexpected $end

PostPosted: Wed Aug 07, 2013 5:29 pm
by donihue
You have made three small mistakes:
- you failed to match "/*" with a "*/" at end of definitions
- you fogot to include "rhoee" in the list of parameters
- you have 2 equations for "zeta"; you need to eliminate one of them
If you correct these, the model runs

Regards
Donihue

Re: ERROR: syntax error, unexpected $end

PostPosted: Fri Aug 30, 2013 2:28 pm
by Gitte
jpfeifer wrote:Try upgrading Dynare. Your mod-file runs on my machine, except for the later problem that
The following endogenous variables aren't present at the current period in the model:
pi_f_hat
t_hat


Thank you for your reply!