Closing a workfile

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

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

Closing a workfile

Postby javiersan » Mon Feb 23, 2009 8:00 am

Hi,

I have an excel file with data I want to import, I know how to open it and create a workfil(Wfopen) but I don't know how to close the workfile using a variable that contains the workfile name.

Code: Select all

%fname= "data23feb09"
%evname=%fname+".wf1"
%fname=%fname+".xls"

wfopen %fname colhead=2 namepos=first range="Daily"

'This works
close data23feb09.wf1

'This does not work
close %evname


Could you please help me with this?

Thanks,

Javier

Jay
Posts: 5
Joined: Wed Feb 18, 2009 12:29 am

Re: Closing a workfile

Postby Jay » Mon Feb 23, 2009 8:48 am

Hi,

just use a replacement variable with those brackets: { }

In your example this would look like this:

close {%evname}

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

Re: Closing a workfile

Postby javiersan » Mon Feb 23, 2009 9:22 am

Thanks!


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 11 guests