Page 1 of 1

Setting dates for weekly page

Posted: Mon Oct 22, 2012 6:58 am
by Patrick
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?

Re: Setting dates for weekly page

Posted: Mon Oct 22, 2012 7:42 am
by EViews Gareth
You can capture the first date of a workfile page using =@otod(1), and the last date with =@otod(@obsrange)