Syntax error, unexpected name, but always the same line

Hello,

When I started to run dynare, the command shows that “ERROR: bayesian.mod: line 208, cols 1-8: syntax error, unexpected NAME”. However, line 208 in my file is an empty line with nothing in it. I then tried to type a few “enter” to reorient the codes, and found regardless of what line 208 is, the error was always “line 208, …” I also tried restarting the PC and still the same error. What happened and what can I do with it?

The mod file is attached below.

bayesian.mod (8.9 KB)

Hi hychyc_span,

You had forgotten to close the equation with semicolon both at line 206 and at line 269.
After fixing that you are left with

ERROR: bayesian.mod: line 96, cols 8-17: Unknown symbol: incsyratio
ERROR: bayesian.mod: line 133, cols 1-2: Unknown symbol: cf
ERROR: bayesian.mod: line 230, cols 1-2: Unknown symbol: w1
ERROR: bayesian.mod: line 231, cols 11-12: Unknown symbol: w1
ERROR: bayesian.mod: line 231, cols 18-19: Unknown symbol: w1
ERROR: bayesian.mod: line 231, cols 39-40: Unknown symbol: w1
ERROR: bayesian.mod: line 241, cols 11-12: Unknown symbol: w1
ERROR: bayesian.mod: line 241, cols 18-19: Unknown symbol: w1
ERROR: bayesian.mod: line 241, cols 39-40: Unknown symbol: w1
ERROR: bayesian.mod: line 254, col 1: Unknown symbol: c
ERROR: bayesian.mod: line 267, col 4: Unknown symbol: c

to fix :slightly_smiling_face:.

bayesian.mod (8.9 KB)

Thanks a lot. It has been solved