Page 1 of 1

copy everything except c and resid

Posted: Fri Feb 24, 2023 1:18 am
by mboll
Hi.
I would like to copy everything from one wf (closed) to another existing wf (which is open) using copy, like this:
Copy old.wf1::q\* q\*

However, every time I do that I have to rename c and resid. Is there any way around that?
I tried drop-function so that I wont copy c and resid from old wf to the new one but it doesn't work for me.

%all = @Wdrop ("*","c resid")
Copy old.wf1::q\{%all} q\

Grateful for all help!

Re: copy everything except c and resid

Posted: Tue Mar 07, 2023 9:24 am
by MartinsFest
There are some options for the command. Try "copy(merge)" for example. There's also an "overwrite"-option and a "protect"-option. For example, try "copy(merge, protect)". This will avoid overwriting any same-named objects in the destination page, and make it so your program doesn't raise an error.

PS: If the frequency from the source is different to the destination, you might also have to specify some type of frequency conversion.

Here's the documentation for the command you're using: https://www.eviews.com/help/helpintro.h ... -copy.html

Re: copy everything except c and resid

Posted: Wed Mar 08, 2023 6:50 am
by mboll
Thank you! Worked very well with the merge and protect-options!