Hello,
I would like to create a monthly report based on the date from Jan to Apr 2023. Please help. In addition, there are errors in creating the dataset. Please correct them; thanks.
data test;
input cust_id date :ddmmyy10. site;
format date ddmmyy10.;
infile datalines delimiter=',';
datalines;
2,01/04/2023,1,
6,01/24/2023,1,
3,03/04/2023,2,
8,03/18/2023,1,
4,02/05/2023,1,
7,04/05/2023,1
;
run;
data Monthly_Table;
input Site Jan2023 Feb2023 Mar2023 Apr2023;
infile datalines delimiter=',';
datalines;
1,2,1,0,1,
2,0,0,1,0,
;
... View more