Page 1 of 1

syntax error, unexpected INF_CONSTANT

PostPosted: Mon Feb 21, 2011 7:33 pm
by pito
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.

Re: syntax error, unexpected INF_CONSTANT

PostPosted: Mon Feb 21, 2011 7:37 pm
by jpfeifer
Hi, please post the mod-file.

Re: syntax error, unexpected INF_CONSTANT

PostPosted: Tue Feb 22, 2011 6:38 am
by pito
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 #?

Re: syntax error, unexpected INF_CONSTANT

PostPosted: Tue Feb 22, 2011 7:54 am
by jpfeifer
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.

Re: syntax error, unexpected INF_CONSTANT

PostPosted: Tue Feb 22, 2011 9:33 am
by pito
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.