Hi All,
I'm new to SAS roughly for the pats few months. I was wondering if there was a way to run a daily sas job from sas on a remote desktop. I already read Wendy's Tricks but I'm not sure how this would apply to my remote desktop case. I only need one SAS job to run daily as of right now though. If anybody could help, that would be much appreciated. Thanks!
Very good. .sas files are perfectly suited for batch processing.
Your server already provides you with a fine tool for running SAS jobs in batch. It is the sasbatch.sh (or sasbatch.bat) in the Lev1/SASApp/BatchServer directory.
Create a shell script (UNIX) or batchfile (Windows) on the server (you also need to store your .sas file on the server), and use the server's scheduling to run your job. I do not recommend to use a desktop for scheduling, especially not a remote one. It's never guaranteed that a (eg) Citrix instance will be "up" if you are not using it at the moment. Keep in mind that the remote desktop is most probably virtual, while your server is very much a "physical" entity, online 24/7.
Define "SAS job". Is it a project file from Enterprise Guide, or a single .sas program file?
Next, give us some information regarding your SAS setup. Is it a single machine containing all SAS software, or do you have a separate SAS server and a desktop from which you access this server?
Hi @Kurt_Bremser,
Define "SAS job". Is it a project file from Enterprise Guide, or a single .sas program file? Single .sas program file.
Next, give us some information regarding your SAS setup. Is it a single machine containing all SAS software, or do you have a separate SAS server and a desktop from which you access this server? I go into a SAS server on remote desktop and access SAS there
Very good. .sas files are perfectly suited for batch processing.
Your server already provides you with a fine tool for running SAS jobs in batch. It is the sasbatch.sh (or sasbatch.bat) in the Lev1/SASApp/BatchServer directory.
Create a shell script (UNIX) or batchfile (Windows) on the server (you also need to store your .sas file on the server), and use the server's scheduling to run your job. I do not recommend to use a desktop for scheduling, especially not a remote one. It's never guaranteed that a (eg) Citrix instance will be "up" if you are not using it at the moment. Keep in mind that the remote desktop is most probably virtual, while your server is very much a "physical" entity, online 24/7.
Thanks @Kurt_Bremser
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.