Hi ,
I redeveloping some ETL job from DB2 to SAS and having a problem. The previous work used MIDNIGHT_SECONDS (Returns an integer value in the range 0 to 86 400, representing the number of seconds between midnight and the time value specified in the argument.) clause which only could be used in DB2 and I am wondering if there is any way the achieve the same function in SAS using proc sql.
eg.
INT(MIDNIGHT_SECONDS(process_time)/900) AS timeslice
Thanks,
Eric
SAS time values are "MIDNIGHT SECONDS". You can read 'hh:mm:ss' fields with a TIME informat as SAS will store the value as SAS/TIME.
SAS time values are "MIDNIGHT SECONDS". You can read 'hh:mm:ss' fields with a TIME informat as SAS will store the value as SAS/TIME.
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!
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.