Changing WF pages in Programming

For requesting general information about EViews, sharing your own tips and tricks, and information on EViews training or guides.

Moderators: EViews Gareth, EViews Moderator

gio.ortolani
Posts: 14
Joined: Wed Apr 25, 2012 7:34 am

Changing WF pages in Programming

Postby gio.ortolani » Wed Apr 25, 2012 8:11 am

Hello,

I'd like to write a program that updates graphs in 2 or more existing workfiles pages. I've already searched on EViews Command & Programming, but I've got no clue! Is it possible to do it or do I have to write one program for each workfile?

I'm using EViews 7.1.

Thanks for your help! :D

EViews Glenn
EViews Developer
Posts: 2620
Joined: Wed Oct 15, 2008 9:17 am

Re: Changing WF pages in Programming

Postby EViews Glenn » Wed Apr 25, 2012 9:32 am

I think this should do it for you...

Pageselect

Make the specified page in the default workfile the active page.

Syntax
pageselect pgname

where pgname is the name of a page in the default workfile.

Examples
pageselect page2

changes the active page to PAGE2.

Cross-references
See also wfselect.

gio.ortolani
Posts: 14
Joined: Wed Apr 25, 2012 7:34 am

Re: Changing WF pages in Programming

Postby gio.ortolani » Wed Apr 25, 2012 10:07 am

Glenn,

thank you so much! It has perfectly worked! ;)

rkh
Posts: 3
Joined: Thu Feb 14, 2013 1:58 am

Re: Changing WF pages in Programming

Postby rkh » Thu Sep 26, 2013 5:10 am

More sophisticated issue, however on the same area.

Is there any posibility for Eviews6 programs to navigate between pages without hard coded page names. I would like to have a program, which gets series name from workfile and creates trendline from x12 seasonal adjustment on different samples, like in following code:

Code: Select all

!forecastPeriods= @obs({%0})
%prefix = "x12_"
FOR !i = 0  TO !forecastPeriods/2
   SMPL @first  @last - !i
   %name  = %prefix + @str(!i)
   {%0}.x12(mode="a", save="d10 d12") {%name}
NEXT



Additionaly i would like to store this bunch of series on a different workfile page. I know the name of destination page, just like that:

Code: Select all

pagecreate(byid, page="x12_seas") @date


Unfortunately i do not know how to come back to the source page. Is there any command which could help me (e.g. transfering page name to string)?

I am working on EVIEWS 6

EDIT: I know i can pass the page name as a 2nd argument of program, still come on it is inconvenient.

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

Re: Changing WF pages in Programming

Postby EViews Gareth » Thu Sep 26, 2013 6:46 am

Not in EViews 6.
Follow us on Twitter @IHSEViews


Return to “General Information and Tips and Tricks”

Who is online

Users browsing this forum: No registered users and 5 guests