BookmarkSubscribeRSS Feed
BlueBrazil
Fluorite | Level 6

I have a field with a value nn:nn:nn.nnn where the 1st nn is Hours, the 2nd nn is Minutes and the 3rd nn is Seconds. I need to convert it to aTIME field.

1 REPLY 1
mohamed_zaki
Barite | Level 11
data new;
input x hhmmss.; /* or time.*/
cards;
16:24:46.321
16:24:43.331
16:24:43.111
16:24:43.345
;run;

proc print data=new;
run;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 731 views
  • 0 likes
  • 2 in conversation