Setting dates for weekly page

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

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

Patrick
Posts: 5
Joined: Wed Oct 10, 2012 1:43 am

Setting dates for weekly page

Postby Patrick » Mon Oct 22, 2012 6:58 am

Hi,

I have managed to convert my daily stepwise code so that it clusters data on weekly level before running the analysis. My problem is the following code:

Code: Select all

pagecreate(page="weekly") w 2011-04-05 2012-10-01
I want the two dates to be variables instead of hard coded. The dates I want to use is the first and last dates of the first page by this code

Code: Select all

%command = "{call spSomething ('" something ")}" wfopen(type=odbc) "someodbc" %command @keep * pagestruct @date(tmdate)
Any ideas?

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

Re: Setting dates for weekly page

Postby EViews Gareth » Mon Oct 22, 2012 7:42 am

You can capture the first date of a workfile page using =@otod(1), and the last date with =@otod(@obsrange)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests