Hi sir,
I am thinking to run a piece of code every one hour, up to 5 times. I tried to use the wakeup function, but not worked. Do you know to achieve this task?
Thanks a lot.
You could probably run your code in a loop, and use the sleep() function to wait until the next relevant time period. However I'd imagine its probably better to schedule the code to run, either using Scheduled Tasks on Windows, or CRON on unix etc. - it depends on what your setup.
Either way, I suppose you'd also have to be sure that your code takes less than an hour to run!
You could probably run your code in a loop, and use the sleep() function to wait until the next relevant time period. However I'd imagine its probably better to schedule the code to run, either using Scheduled Tasks on Windows, or CRON on unix etc. - it depends on what your setup.
Either way, I suppose you'd also have to be sure that your code takes less than an hour to run!
I've put this right now using the sleep() function. Many thanks
I presume this is for sending out your emails. If you are on Windows take a look at:
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.