I wanted to know if the CENT_TM10 is greater than (COLL_TM1 + 15 minutes)
Data EC02;Set Ec01;
if cent_tm10 > coll_tm1 + 15 ;
Run;
I get all the records in EC01 again into EC02..
Any help..
Bob
SAS stores time in seconds. Use 15*60 to get 15 minutes.
You didn't indicate what kind of fields cent_tm10 and coll_tm1 were. If they are datatime fields they are measured in seconds thus you would have to change your comparison to that unit of measurement (i.e., times 60).
time5. is the format that I have on all the time fields.
BOB
SAS stores time in seconds. Use 15*60 to get 15 minutes.
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.