Page 1 of 1

Pagerestructure

Posted: Sun Jun 26, 2016 7:03 am
by Redwing153
Hello,

I have this code, which is designed to create a new dated workfile with weekly observations with an end date of today and a start date of 10 years ago

Code: Select all

wfcreate u 1000 pagestruct(freq="w",start=2000,end=@now) pagestruct(start=@now-521)
If I run this on the 26/06/2016, @now returns 25/06/2016.

How can I control the end date (and make it read 26/06/2016)?

Thanks.

Re: Pagerestructure

Posted: Sun Jun 26, 2016 7:52 am
by EViews Gareth
Store the current date into a %variable, then use that variable inside the command

Re: Pagerestructure

Posted: Sun Jun 26, 2016 8:30 am
by Redwing153
What am I doing wrong here? It isn't working for me

Code: Select all

wfcreate u 1000 %a=@datestr(@now,"dd/mm/yyyy") pagestruct(freq="w",start=2000,end=%a pagestruct(start=%a-521)
I'm still getting an end date of 25/06/2016