error in creating sheet

For questions regarding programming in the EViews programming language.

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

Posts: 1
Joined: Thu Jan 18, 2018 2:50 am

error in creating sheet

Postby upani1982 » Thu Sep 15, 2022 11:29 pm

Dear All,

I want to create two series y and x based on the following formulas

y = 547 + 1.21*x, range (-10 80) (You can take different values of x within the range -10 to 80 with an increment of 10 in each successive number.
(i) plot this function over the range -10 to 80, (ii) label the y-axis in Increments of 100 from 0 to 600, and (iii) draw a vertical line at x=0 (temp=0).

Now to do this in E-views I have capture the command which i have done so far

Code: Select all

wfcreate u 10
close Untitled
SER01.displayname x
SER01.rename x
series y=547 + 1.21*x
close Y
close Untitled
{%graph}.axis(l) range(0,600)
close Untitled

I am getting the following error

Syntax error in ".SHEET" on line 3.

Please advise me how to improve the code and rewrite it.

With sincere regards,
Upananda Pani

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

Re: error in creating sheet

Postby EViews Gareth » Fri Sep 16, 2022 9:03 am

When interacting with EViews using the GUI, it is possible to manipulate objects that have not been named (so the title is "unnamed").

This is not possible when using the EViews programming language. Consequently, the command capture window cannot fully capture actions that work with unnamed objects. When you do try to interact with an unnamed object, the capture window will put {%group} (or whatever other type of object was being manipulated) instead of the name of the group. If you wish to make a program from this capture, you would need to replace the {%group} with the name of the group (which you would first need to create).
Follow us on Twitter @IHSEViews

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 11 guests