Using the command window

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

LaurenF
Posts: 7
Joined: Tue Jun 29, 2010 7:47 am

Using the command window

Postby LaurenF » Tue Jun 29, 2010 11:50 pm

Hi

I am new to eViews and to familiarise myself with the programme I am working through some of the examples in the User Guide. :?
In the stepwise-regression example, a for-loop is used.

for !i=1 to 40
series x!i=nrnd
%name="x"+@str(!i)
xs.add {%name}
next


However when I try run the for-loop , the error message "Flow of control statement executed from the command line" or "X!I is an illegal or reserved name" if I enter on the second line.

I have programme before however I am not sure where I am going wrong with this simple for-loop. Is there another way of doing this.
Thanks :D

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

Using the command window

Postby EViews Gareth » Wed Jun 30, 2010 12:25 am

You need to put your code into an EViews program and then run it. Click on File->New->Program

LaurenF
Posts: 7
Joined: Tue Jun 29, 2010 7:47 am

Re: Using the command window

Postby LaurenF » Wed Jun 30, 2010 1:28 am

Thx


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests