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?