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: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 1075 views
  • 1 like
  • 2 in conversation