Page 1 of 1

Rename workfile

Posted: Fri Nov 19, 2010 8:00 am
by javiersan
Hello,

I have some workfiles that have complicated long names and I wonder if it is possible to rename them once opened

For example I open
wfopen "All_Reports_20080331_1-4 Family Residential Net Loans and Leases.csv"

which I would like to rename to "File1". The only way of doing this that I know is by saving the file to disk with a wfsave but is there a way of renaming the workfile in memory without saving?

Thanks,

Javier

Re: Rename workfile

Posted: Fri Nov 19, 2010 8:06 am
by javiersan
wfopen(wf=File1) ...

:oops:

Re: Rename workfile

Posted: Sun Nov 12, 2017 12:24 pm
by BretBertolin
I am also trying to open an existing workfile and give it a new name without saving. I tried to solution given abd it opens the workfile but doesn't change the name. Here is the command in my program:

WFOPEN(WF=LAG1117) \EconomicForecasts\1117\Washington\BUILD1117

It opens BUILD1117 but does not change the name to LAG1117. Any ideas why? Thanks.

Re: Rename workfile

Posted: Sun Nov 12, 2017 1:00 pm
by EViews Gareth
Use wfsave to give the file a new name.

Re: Rename workfile

Posted: Sun Nov 12, 2017 2:31 pm
by BretBertolin
Yes, I know I can change the name by saving. The original question was how to rename a workfile without saving. The solution given was "wfopen(wf=File1) ..." I tried that solution with WFOPEN(WF=LAG1117) \EconomicForecasts\1117\Washington\BUILD1117 and it did not open the workfile with the new name. Did I do something wrong?

Re: Rename workfile

Posted: Mon Nov 13, 2017 9:26 am
by EViews Gareth
Unfortunately you cannot.