data have;
input Date :date9.;
format Date date9.;
datalines;
01oct2021
10oct2021
05oct2021
11oct2021
01oct2021
05oct2021
10oct2021
;
proc sort data = have nodupkey;
by Date;
run;
proc transpose data = have out = want prefix = d;
var Date;
run;
However, usually its not a good thing to do because it makes the next steps (the analysis, or the report) more difficult. Would you be kind enough to tell us what the next steps (analysis or report) will be?
I'd recommend adding an IDLABEL option here and have the label be the date.
SAS Innovate 2025: Register Now
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9. Sign up by Dec. 31 to get the 2024 rate of just $495. Register now!