Control variables seem not to work

For questions regarding programming in the EViews programming language.

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

paulb
Posts: 7
Joined: Wed Nov 26, 2008 11:28 am

Control variables seem not to work

Postby paulb » Wed Nov 26, 2008 11:40 am

My daughter is starting usage of Eviews with version 6 standard edition.
Works fine until she uses control variables.

%x = 3 - seems to work fine
series test = !y - says !Y is not defined
series test = {!y} - says {!Y} is not defined

Does anyone know what is wrong ?
Thanks in advance

Paul

paulb
Posts: 7
Joined: Wed Nov 26, 2008 11:28 am

Re: Control variables seem not to work

Postby paulb » Wed Nov 26, 2008 11:41 am

sorry, i meant

!y = 3 - seems to work fine
series test = !y - says !Y is not defined
series test = {!y} - says {!Y} is not defined

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

Re: Control variables seem not to work

Postby EViews Gareth » Wed Nov 26, 2008 12:17 pm

Are you sure it isn't working?

The following code works fine for me:

Code: Select all

create u 100 !y=3 series test = !y series test2 = {!y}

paulb
Posts: 7
Joined: Wed Nov 26, 2008 11:28 am

Re: Control variables seem not to work

Postby paulb » Wed Nov 26, 2008 12:22 pm

Thanks for the response.

Copied and pasted your code. Same result : variable is not defined with or without brackets.

Could it be due to the fact that it is standard edition and not entreprise ?

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

Re: Control variables seem not to work

Postby EViews Gareth » Wed Nov 26, 2008 12:31 pm

Did you paste it into an EViews program, or did you paste it into the command window?

Control variables can only be used in an EViews program.


This is the case for both Standard and Enterprise editions.

paulb
Posts: 7
Joined: Wed Nov 26, 2008 11:28 am

Re: Control variables seem not to work

Postby paulb » Wed Nov 26, 2008 12:36 pm

:oops: ...into the command window ...

Sorry and thanks a lot for the fast and useful response.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests