Hi all,
One more question... I have a time field that I want to increment to the next 15 minute interval. So if the first obs is 00:36 I want 00:45, if 1:12 I want 1:15 etc. Here's what I have so far, but it advances to the next hour, not 1/4 hour...
Min_Start = intnx('dthour',StartTime,.25, 'e');
format Min_Start HHMM.;
I think, based on your description, you want the Start of the next 15 minute interval.
Reviewing the SAS LANGUAGE documentation, have a look at INTNX and the DTMINUTEnn function.
Suggested browser search argument: intnx function 15 minute interval site:sas.com
Scott Barry
SBBWorks, Inc.
You could use proc format:
1 - 14 = 15
16 - 29 = 30 etc.
I think, based on your description, you want the Start of the next 15 minute interval.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.