Inconsistent date handling
Posted: Wed Apr 11, 2012 11:39 pm
EViews does not seem to handle dates in a consistent fashion. The following code works just fine. (Notice in particular the date manipulation on row 4.)
Whereas moving the date manipulation to line 3 causes the program to break down.
The only way I can find to make the second code work is through the (quite lengthy) code below.
Is there anyway less lengthy to do this? And are there intentions to make the date handling consistent?
Code: Select all
%startdate="1970Q1"
%enddate="2000Q4"
wfcreate q %startdate %enddate
smpl %startdate+1 %enddateCode: Select all
%startdate="1970Q1"
%enddate="2000Q4"
wfcreate q %startdate+1 %enddateCode: Select all
%startdate="1970Q1"
%enddate="2000Q4"
%t=@datestr(@dateadd(@dateval(%startdate,"YYYY[Q]Q"),+1,"Q"),"YYYY[Q]Q")
wfcreate q %t %enddate