Syntax Error

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

thomas84
Posts: 23
Joined: Tue Feb 04, 2014 6:19 am

Syntax Error

Postby thomas84 » Tue Feb 04, 2014 6:24 am

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,

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Syntax Error

Postby EViews Gareth » Tue Feb 04, 2014 8:50 am

There's nothing wrong with that code. I can run it without any errors.

thomas84
Posts: 23
Joined: Tue Feb 04, 2014 6:19 am

Re: Syntax Error

Postby thomas84 » Wed Feb 05, 2014 3:28 am

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.

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: Syntax Error

Postby startz » Wed Feb 05, 2014 7:57 am

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.

thomas84
Posts: 23
Joined: Tue Feb 04, 2014 6:19 am

Re: Syntax Error

Postby thomas84 » Thu Feb 06, 2014 8:18 am

that was the issue! Thank you so much...


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests