Page 1 of 1

Copy only a given type of object

Posted: Tue Mar 04, 2014 1:54 am
by jfgeli
Hi,

I have a page with many different objects types(scalars, series, samples, etc). Is it possible to copy only ALL series to a different page? I only know, I could do copy page1\* page2\*.I do not know in advance which is the name of the series.

Thanks,

Fede

Re: Copy only a given type of object

Posted: Tue Mar 04, 2014 9:07 am
by EViews Gareth
Use the wlookup command to find the names of all series in the workfile, then loop through that list copying one at a time.

Re: Copy only a given type of object

Posted: Tue Mar 04, 2014 9:44 am
by jfgeli
:)

Re: Copy only a given type of object

Posted: Tue Mar 04, 2014 10:32 am
by EViews Glenn
I think that something like the following will work

Code: Select all

group all * all.drop resid copy(d) page1\all page2\all delete all
creates a group with all of the series, drops the residual. The copy with the "d" option should copy all of the series in ALL from the source to the destination. I then delete the ALL group, but you can leave it if you wish.