syntax error, unexpected INF_CONSTANT

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.

syntax error, unexpected INF_CONSTANT

Postby pito » Mon Feb 21, 2011 7:33 pm

Hi everyone,

I have a problem with my mod file to be read by version 4.1.3. In particular, the message is "syntax error, unexpected INF_CONSTANT. DYNARE: preprocessing failed". I don't know what INF_CONSTANT actually means? I've checked my settings of parameters and made sure that there is no constant in the model since it is log-linearized. The interesting thing is that when I run the same mod file in version 3.065 I get an error "In an assignment A(I) = B, the number of elements in B and I must be the same", the meaning of which I don't know either. Perhaps, it is related to the rank condition. I want to produce impulse response functions using stochastic simulation with the options steady and check.
If anybody can guide me through these, I would be very happy.

Thanks in advance.
pito
 
Posts: 16
Joined: Mon Feb 21, 2011 6:33 pm

Re: syntax error, unexpected INF_CONSTANT

Postby jpfeifer » Mon Feb 21, 2011 7:37 pm

Hi, please post the mod-file.
------------
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: syntax error, unexpected INF_CONSTANT

Postby pito » Tue Feb 22, 2011 6:38 am

Yes, sure! Here it is. I am just thinking that probably my coefficients in the model are too long. Shall I replace them as the functions of deep parameters using #?
Attachments
Initial.mod
(8.47 KiB) Downloaded 88 times
pito
 
Posts: 16
Joined: Mon Feb 21, 2011 6:33 pm

Re: syntax error, unexpected INF_CONSTANT

Postby jpfeifer » Tue Feb 22, 2011 7:54 am

Hi, Dynare 4.2 says:
ERROR: Initial.mod:1.20-22: syntax error, unexpected INF_CONSTANT

If you look in the respective line 1 at colums 20 to 22, you will see that you named one variable inf (i guess inflation), but inf is a reserved word for infinity. Please change the name to infl.
------------
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: syntax error, unexpected INF_CONSTANT

Postby pito » Tue Feb 22, 2011 9:33 am

Thanks a lot. Now I know what those numbers before the error message mean. I wrongly looked at lines 20-22 instead of 1. Yet, I have to meet the rank condition still. Let me figure it out.
pito
 
Posts: 16
Joined: Mon Feb 21, 2011 6:33 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests