All,
We have a file landing in S3 in UTC time zone but our sas is in GMT time zone. How can we change our SAS session to UTC.
ex:test,txt is landing at 12:30 AM Monday. If I try to read that file through sas(If file is updated today then read the file ,file is showing updated 11:30 PM yesterday ) but it is not picking up because of UTC time.
Thanks,
SS
I don't think I quite understand your issue.
Is the time that a SAS program is supposed to run the issue? Is the schedule starting that program in SAS? If so, how is that program scheduled?
Or is the issue that the time values SAS reads are showing incorrectly?
Its a manual run not scheduled yet.
the issue is that the time values SAS reads are showing incorrectly.
I will try with TZONES2U( ) .
thanks for your help.
You can change the TIMEZONE option.
Looks like you can change it on the fly if you want.
1327 %put timezone=%sysfunc(getoption(timezone)) %sysfunc(datetime(),datetime20.); timezone= 20JUL2020:13:42:49 1328 options timezone='GMT'; 1329 %put timezone=%sysfunc(getoption(timezone)) %sysfunc(datetime(),datetime20.); timezone='GMT' 20JUL2020:17:42:49 1330 options timezone='EDT'; 1331 %put timezone=%sysfunc(getoption(timezone)) %sysfunc(datetime(),datetime20.); timezone='EDT' 20JUL2020:13:42:49
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.