workfile range

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

lbkova
Posts: 12
Joined: Wed Mar 04, 2009 7:16 am

workfile range

Postby lbkova » Fri Apr 24, 2009 1:13 am

Hello All,

Could you help me how I could import an Excel file into Eviews in which the length of the time series changes (grows) every day by 1. When I use the following line: workfile name d 01/01/2006 23/04/2009, the end of the range should change let's say to today's date...

Thank you for your help!

Laszlo

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

Re: workfile range

Postby EViews Gareth » Fri Apr 24, 2009 8:14 am

There are two parts to that question, I suppose.


The first is how should you import the data into EViews. The obvious answer to that is that you should use the wfopen command rather than the read command to get the data into EViews each day, then you don't need to worry about sizing the workfile at all (since it will be done automatically).


If that doesn't do what you want though, to create a workfile up to todays date, use the following command:
workfile name d 01/01/2006 @datestr(@now,"dd/mm/yyyy")

lbkova
Posts: 12
Joined: Wed Mar 04, 2009 7:16 am

Re: workfile range

Postby lbkova » Fri Apr 24, 2009 8:55 am

Hello Gareth,

Thank you for the answer! Then maybe wfopen is my solution (though I like the second one as well). However wfopen brings up a new question for me: how to achieve that the workfile to be imported in shall be updated each day with the relevant data/dates from the Excel...

Best regards,

Laszlo

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

Re: workfile range

Postby EViews Gareth » Fri Apr 24, 2009 8:59 am

I don't follow the question.

lbkova
Posts: 12
Joined: Wed Mar 04, 2009 7:16 am

Re: workfile range

Postby lbkova » Fri Apr 24, 2009 10:13 am

I don't follow the question.
Sorry, I have just realised that I overcomplicated things... Thank you for the answer! I'm sure it will work fine!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests