copy all objects in a page to another workfile

For questions regarding programming in the EViews programming language.

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

jfgeli
Posts: 72
Joined: Fri Jan 30, 2009 6:29 pm

copy all objects in a page to another workfile

Postby jfgeli » Mon Jan 14, 2013 4:51 am

Hi,

I need to create a subroutine that should copy all the series, groups, etc in one page in a given workfile into another workfile. I have tried something like:

cd "path....."
...
%source_workfile = "bla_bla"
%destination_workfile= "bla_bla_2"

copy(overwrite) {%source_workfile}::quarter_modi\* {%destination_workfile}::quarter_modi\

When I try I always get the following error:

"Database not found: bla_bla in "copy(overwrite) ..."

Both files bla_bla.wf1and bla_bla_2.wf1exist. The path is a network path. I am using eviews 7.2. I don't know how to tell Eviews that it should look for a workfile instead of a database". What am I doing wrong?

Thanks for the help,

Fede

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

Re: copy all objects in a page to another workfile

Postby EViews Gareth » Mon Jan 14, 2013 7:11 am

Are both workfiles open?

jfgeli
Posts: 72
Joined: Fri Jan 30, 2009 6:29 pm

Re: copy all objects in a page to another workfile

Postby jfgeli » Mon Jan 14, 2013 7:55 am

Thanks for the tip. Only one of the files was open.

Best,

Fede


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests