I'm completely new to SAS.
My database has data from 2000-2011 and my dataset list is something like this for each date:
TP_2004012 for 26JAN2004
TP_20040127 for 27JAN2004
TP_20040128 for 28JAN2004
I have a numeric date like this 20100510. I want the data between 50 days and 10 days before this date (20100510). There are chances that some dates will be missing between 50 and 10 days period.
My code for this looks like:
%let yyyymmdd=20090120;
%let beg=intnx('day',date,-55);
%let end=intnx('day',date,-10);
data x;
set QA.TP_&yyyymmdd QA.TP_&beg-QA.TP_&end;
But this is not working.
Please help me with a suitable macro code for this.