data new;
set oldDataSet;
newDate = mdy(month, day, year);
format newDate ddmmyy8.;
run;
Assuming you already have a data set with the day, month, year referencing it with a SET statement instead is what you want to do.
@kimmialex wrote:
I used this code, but I have over 8,000 observations. When I use this code, I only see my first three observations. I am sure there is an easier code without putting each dataline in. Thanks for the help
data deaths; input year day month; format new ddmmyy8.; new=mdy(month,day,year); datalines; 1999 1 1 1999 1 2
1999 1 3 ; run;
... View more