Data ds1;
Input pid drug$ visit_date date9.;
Format visit_date date9.;
Cards;
101 asp-05mg 12jan2005
102 asp-10mg 14jan2005
101 asp-05mg 18jan2005
102 asp-10mg 12jan2005
101 asp-05mg 21jan2005
103 asp-15mg 12jan2005
101 asp-05mg 30jan2005
102 asp-10mg 12jan2005
101 asp-05mg 23jan2005
102 asp-10mg 12jan2005
101 asp-05mg 11jan2005
103 asp-15mg 12jan2005
101 asp-05mg 15jan2005
104 asp-20mg 12jan2005
101 asp-05mg 16jan2005
102 asp-10mg 12jan2005
103 asp-15mg 12jan2005
103 asp-15mg 12jan2005
101 asp-05mg 15jan2005
;
Run;
data f;
set ds1;
visit_date=date ;
informat date date10.;
format date date10.;
run; i am unable to get the values in date variable. please guide me. thank you.
... View more