HI All,
I have dates like 2017-10-05T13:00 in $22 format i want to convert it in to CDISC is860 format how i can...?
You probably have to read it in using one of the ANYDTDTM formats to make it a numeric.
Then, all you have to do is apply the desired format ISO 8601 format
Yes I want to convert it into numeric ,presently it in $20. format I want to present it in E8601DT19.
data _null_;
length x $22 ;
x='2017-10-05T13:00';
value=input(x,e8601dt19.);
put value=datetime19.;
run;
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: