Hello,
I'm trying to convert character variable into sas date9. date.
data:
23-Jan-23
want (date9.):
23Jan2023
Thank you
data have; chardate='23-Jan-23'; numdate=input(chardate,date11.); format numdate date9.; run;
data have;
chardate='23-Jan-23';
numdate=input(chardate,date9.);
format numdate date9.;
run;
data have; chardate='23-Jan-23'; numdate=input(chardate,date11.); format numdate date9.; run;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.