Page 1 of 1

Changing WF pages in Programming

Posted: Wed Apr 25, 2012 8:11 am
by gio.ortolani
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

Re: Changing WF pages in Programming

Posted: Wed Apr 25, 2012 9:32 am
by EViews Glenn
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.

Re: Changing WF pages in Programming

Posted: Wed Apr 25, 2012 10:07 am
by gio.ortolani
Glenn,

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

Re: Changing WF pages in Programming

Posted: Thu Sep 26, 2013 5:10 am
by rkh
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.

Re: Changing WF pages in Programming

Posted: Thu Sep 26, 2013 6:46 am
by EViews Gareth
Not in EViews 6.