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 open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.