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

I have a sas code which I need to schedule that has been exported from SAS EG project which consist of 8 programs.This sas code will generate a scatter plot which I need to export into a PDF file. So we are planning on scheduling this SAS code from a server side. Can I write a shell script so that we can schedule from server side?

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Ideally, you make use of the sasbatch.sh script located in

sasconf/Lev1/SASApp/BatchServer

(sasconf = where your SAS server configuration is located)

 

The script accepts all commandline parameters you typically use for running SAS in batch (program name, -log for log, etc)

 

You can write your own wrapper script like

/sasconf/Lev1/SASApp/BatchServer/sasbatch.sh /programs/myprog.sas -log /logs/myprog.log

and have that executed from the scheduler

View solution in original post

3 REPLIES 3
Kurt_Bremser
Super User

Ideally, you make use of the sasbatch.sh script located in

sasconf/Lev1/SASApp/BatchServer

(sasconf = where your SAS server configuration is located)

 

The script accepts all commandline parameters you typically use for running SAS in batch (program name, -log for log, etc)

 

You can write your own wrapper script like

/sasconf/Lev1/SASApp/BatchServer/sasbatch.sh /programs/myprog.sas -log /logs/myprog.log

and have that executed from the scheduler

ssaha
Obsidian | Level 7

Thanks for your reply. I need to automate it for last sunday of every month. This automation should be done from the scheduler or I can add an extra command to the script?

SAS Innovate 2025: Call for Content

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!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 1029 views
  • 1 like
  • 2 in conversation