hey all,
i have a dataset name risks_data - that contains fromdate, todate and risks. fromdate and todate in the format of date9. and risks number. as below.
fromdate todate risks
02MAR2009 02MAR2010 1
21FEB2010 21FEB2011 1
.
.
.
and i am need to find the number of risks in three different months - 1st Jan 2010, 1st Feb 2010, 1st March 2010 so I had the below macro codes.
%macro date;
Data date_&month;
set risks_data ( keep = fromdate todate risks);
Where fromdate <= "%sysfunc(putn(%sysfunc(intnx(Month,%sysfunc(date()),-1)),EURDFDE9.))"D <= todate and risks;
run;
%mend date;
once thats done, I need to tabulate the number of risks into a table showing something as below (this is where I am not sure how to go about doing it)
Effective_Day Risks
01Jan2010 2311
01Feb2010 1452
01March2010 2785
hope someone can help me out on this one!!
thanks in advance!
Yennie