- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Timing and dependencies should be handled by the scheduler, that is what it's for.