Experts, I am trying to read in the below data using hhmmss informat. While using hhmmss informat, when there are less that 6 digits in the input, as per SAS user guide, it appends zeros to the end to make it 6 digits and reads it in. But when 0010 as read in using hhmmss in SAS, it is read as 10 hours instead of 10 minutes (as I would expect.) Is it a SAS bug? Anyone knows a work around to it. Thanks a lot for the help... Test Program: data _null_; x=input('0010',hhmmss.); y=input('123045',hhmmss.); put x=time8. y=time8.; run; SAS Log FIle: 1 ! 2 data _null_; 3 x=input('0010',hhmmss.); 4 y=input('123045',hhmmss.); 5 put x=time8. y=time8.; 6 run; x=10:00:00 y=12:30:45
... View more