🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 10-20-2020 04:10 PM
(1558 views)
Hi,
How do make a sas code wait for 2 hours before it executes? For example I have the below code.
data want;
set sashelp.cars;
run;
I do not want to execute this logic when I start the code rather wait for 2 hours. What options do I add? I will be running the code in grid.
Any suggestions or sample code is appreciated ?
Thanks,
Nick
How do make a sas code wait for 2 hours before it executes? For example I have the below code.
data want;
set sashelp.cars;
run;
I do not want to execute this logic when I start the code rather wait for 2 hours. What options do I add? I will be running the code in grid.
Any suggestions or sample code is appreciated ?
Thanks,
Nick
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
SLEEP() but you may also need to consider triggers and more complicated execution paths on a grid server.
https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=lefunctionsref&docsetTarg...
https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=lefunctionsref&docsetTarg...
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
SLEEP() but you may also need to consider triggers and more complicated execution paths on a grid server.
https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=lefunctionsref&docsetTarg...
https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=lefunctionsref&docsetTarg...
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
If this is to run code outside of "normal" hours then why not consider scheduling your SAS program for the time you want so it runs automatically?