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?
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
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
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?
Timing and dependencies should be handled by the scheduler, that is what it's for.
Nearly 200 sessions are now available on demand in the Innovate Hub.
Watch Now →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.