Rename workfile

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator

javiersan
Posts: 177
Joined: Mon Jan 19, 2009 8:18 am

Rename workfile

Postby javiersan » Fri Nov 19, 2010 8:00 am

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

javiersan
Posts: 177
Joined: Mon Jan 19, 2009 8:18 am

Re: Rename workfile

Postby javiersan » Fri Nov 19, 2010 8:06 am

wfopen(wf=File1) ...

:oops:

BretBertolin
Posts: 8
Joined: Sun Jan 09, 2011 4:52 pm

Re: Rename workfile

Postby BretBertolin » Sun Nov 12, 2017 12:24 pm

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.

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

Re: Rename workfile

Postby EViews Gareth » Sun Nov 12, 2017 1:00 pm

Use wfsave to give the file a new name.
Follow us on Twitter @IHSEViews

BretBertolin
Posts: 8
Joined: Sun Jan 09, 2011 4:52 pm

Re: Rename workfile

Postby BretBertolin » Sun Nov 12, 2017 2:31 pm

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?

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

Re: Rename workfile

Postby EViews Gareth » Mon Nov 13, 2017 9:26 am

Unfortunately you cannot.
Follow us on Twitter @IHSEViews


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 5 guests