ERROR: syntax error, unexpected $end


#1

Hi,

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

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

Error using dynare (line 114)
DYNARE: preprocessing failed[/quote]

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
rot.mod (6.97 KB)


#2

Try upgrading Dynare. Your mod-file runs on my machine, except for the later problem that

[quote]The following endogenous variables aren’t present at the current period in the model:
pi_f_hat
t_hat [/quote]


#3

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
NKKtaylord.mod (6.3 KB)


#4

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


#5

Thank you for your reply!


#6

Hi,

I ran my model in dynare version 4.5.1, but I keep getting the error message below.

ERROR: …: line 140, cols1-0 : syntax error, unexpected $end
in my .mod file, i have no code in line 140!!

I cant find any problem through the codes, can you tell me what is wrong??

Thank you in advance,


#7

Usually that means that in the previous line there is something missing like a semicolon. Without the file it is impossible to tell.


split this topic #8

7 posts were split to a new topic: Replicating Adjemian et al (2010) `Evaluation de la politique monétaire dans un modèle DSGE pour la zone Euro"