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;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.