Page 1 of 1

Syntax Error

Posted: Tue Feb 04, 2014 6:24 am
by thomas84
Hi,

I am using this command:

for !n = 1 to 15
series ra{!n}=100*rs{!n}*nyf{!n}/p{!n}
next

It keeps giving me "Syntax Error". Any ideas what I can do?

Thanks,

Re: Syntax Error

Posted: Tue Feb 04, 2014 8:50 am
by EViews Gareth
There's nothing wrong with that code. I can run it without any errors.

Re: Syntax Error

Posted: Wed Feb 05, 2014 3:28 am
by thomas84
Thank you for the reply. Unfortunately, I still receive Syntax Error when I write it into the command window. Are there any pre-steps I should have taken? I assumed that "!n" represents my variables which I have 15 of.

Re: Syntax Error

Posted: Wed Feb 05, 2014 7:57 am
by startz
Thank you for the reply. Unfortunately, I still receive Syntax Error when I write it into the command window. Are there any pre-steps I should have taken? I assumed that "!n" represents my variables which I have 15 of.
Write it into a program rather than into the command window, and then run the program.

Re: Syntax Error

Posted: Thu Feb 06, 2014 8:18 am
by thomas84
that was the issue! Thank you so much...