Create page with same frequency as first page

For questions regarding programming in the EViews programming language.

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

neptunhiker
Posts: 50
Joined: Sat Oct 20, 2012 7:30 am

Create page with same frequency as first page

Postby neptunhiker » Tue Aug 27, 2013 3:41 am

Hi,

I can't figure out how to create a new page in the same workfile that has the same structure as Page1.

If I insert the following code, eViews gives me an error, because of an incomplete command.

Code: Select all

create d5 2000 2002 series someseries pagecreate (byid) @date(someseries)
I think I get the error, because when I just insert the following code into the command window of an already created workfile, then a new window pops up and asks me to specify the structure of the new page to be created.

Code: Select all

pagecreate (byid) @date(someseries)
How can I avoid that? That is: What code can I insert into my program that creates a new page with the same structure as the "OldPage without having to confirm or specify anything?

Thanks a lot.

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

Re: Create page with same frequency as first page

Postby EViews Gareth » Tue Aug 27, 2013 8:26 am

Code: Select all

create d5 2000 2002 pagecreate(byid) @date

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

Re: Create page with same frequency as first page

Postby EViews Glenn » Tue Aug 27, 2013 10:42 am

I think the problem with the original example is the extra space before the options. EViews thinks you want to define the page using the series BYID.

neptunhiker
Posts: 50
Joined: Sat Oct 20, 2012 7:30 am

Re: Create page with same frequency as first page

Postby neptunhiker » Tue Aug 27, 2013 10:27 pm

Thanks. It worked out perfectly. It was really just the space.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests