Hi, am I doing anything wrong here since Ship_data is not coming same as like (02FEB2009) in output. please correct my code
data work.put123;
length Order_Id 6 Customer $15 Ship_date 8;
input @1 Order_Id 5. @7 Customer $12. @20 Ship_date date9.;
format Ship_date yymmddd10.;
datalines;
9341 Josh Martin 02FEB2009
9874 Rachel Lords 14MAR2009
10233 Takashi Sato 07JUL2009
;
run;
Hi @souji
You just need to use the date9. Format instead of the yymmddd10. format:
format Ship_date date9.;
Thank you
Simply apply the Date9 format instead
data work.put123;
length Order_Id 6 Customer $15 Ship_date 8;
input @1 Order_Id 5. @7 Customer $12. @20 Ship_date date9.;
format Ship_date date9.;
datalines;
9341 Josh Martin 02FEB2009
9874 Rachel Lords 14MAR2009
10233 Takashi Sato 07JUL2009
;
run;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.