Page 1 of 1

is it allowed to use program arguments in a for loop ?

Posted: Tue Jun 14, 2016 2:07 am
by melamel
Good morning,
I wanted to include program arguments in a for loop, but eviews prompted me an error message saying that there was a syntax error in the control statement. Here's the piece of code i'm using :

Code: Select all

FOR %k %0 %1 %2 %3 %4 %5 freeze(table_Trend_{%k}) {%k}.uroot(exog=trend) next
before running this program I included the names of the variables to be replaced by the %0 %1...in the appropriate field.
Can you please explain me what's the problem ?

Re: is it allowed to use program arguments in a for loop ?

Posted: Tue Jun 14, 2016 2:30 am
by EViews Gareth
Try braces around the arguments.

Re: is it allowed to use program arguments in a for loop ?

Posted: Tue Jun 14, 2016 3:02 am
by melamel
It worked !thank you a lot :)