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:
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.