I have time data in format of hh:mm:ss:nnn. How can i read the data with interval of a minute from that data where nano seconds are inclusive.
Thanks,
Gobin
Use the INTNX function to increment by 'minute'. Edit: with alignment 'same'!
If your value is still stored in a character variable, use the time12.3 informat for conversion before applying the intnx function.
If you used the time12.3 as informat, your SAS time value will contain the milliseconds after the decimal point.
To extract only the milliseconds, do
milsecs = (timeval - int(timeval)) * 1000;
@Kurt_Bremser Thank you very much!! This helped. the key 'same'
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.