BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
skatofia
Calcite | Level 5

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

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.

View solution in original post

4 REPLIES 4
Kurt_Bremser
Super User

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?

skatofia
Calcite | Level 5

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

Kurt_Bremser
Super User

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.

SAS Innovate 2025: Register Now

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!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2338 views
  • 0 likes
  • 2 in conversation