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.
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;
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Register now!
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.