Unexpected Error - Syntax Error, Unexpected Times

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Unexpected Error - Syntax Error, Unexpected Times

Postby danishussalam » Thu Apr 17, 2014 9:29 am

Can someone please help me with this error? I get this every time i run the code:

Starting Dynare (version 4.4.2).
Starting preprocessing of the model file ...
ERROR: model2.mod: line 69, col 39: syntax error, unexpected TIMES
Attachments
model2.mod
(2.43 KiB) Downloaded 83 times
danishussalam
 
Posts: 21
Joined: Thu Apr 10, 2014 9:27 am

Re: Unexpected Error - Syntax Error, Unexpected Times

Postby jpfeifer » Thu Apr 17, 2014 9:37 am

Simply do what Dynare says and look at line 69, column 39 of your code. There you have
+*

which is not correct syntax. It is either plus or times, but not both.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Unexpected Error - Syntax Error, Unexpected Times

Postby danishussalam » Thu Apr 17, 2014 9:56 am

Thank you so much. I must have missed that! It now works, but now dynare says there are 31 equations and 35 endogenous variables and I really don't understand which variable to drop. If I drop any endogenous variable, dynare then gives the error of "unknown symbol" for that particular variable.
danishussalam
 
Posts: 21
Joined: Thu Apr 10, 2014 9:27 am

Re: Unexpected Error - Syntax Error, Unexpected Times

Postby jpfeifer » Thu Apr 17, 2014 10:27 am

Often, the problem rather is you are missing some equations. But your are the only one knowing your model. Hence, my standard advice is:
Given the size of your model, start from a stripped down easier version and make sure that one runs before expanding it again.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Unexpected Error - Syntax Error, Unexpected Times

Postby danishussalam » Thu Apr 17, 2014 10:50 am

okay i'll do that.. Thanks alot.
danishussalam
 
Posts: 21
Joined: Thu Apr 10, 2014 9:27 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests