SAS - Automation

Hello all,

I need some guidance on SAS reports automation. How can I start the approching the automation of the reports. I have already written the code to create the reports
arukuAsked:
Who is Participating?
 
Aloysius LowCommented:
you'll need to write a shell script which looks like:
[path to sas executable]/sas -sysin [full path to sas code] -autoexec [full path to autoexec, if any] -log [full path to generate log into for the current execution]

-autoexec and -log options are totally optional. what's important is -sysin option which points to the file which should be executed by sas. this will be the sas code which you are talking about.

as for cron, you can refer to the following link: http://en.wikipedia.org/wiki/Cron
however, you'll need knowledge of using vi for this purpose.
0
 
Aloysius LowCommented:
what are you looking to use to automate the reports creation? is it by batch, triggered by some scheduling software?

if so, you could get the scheduler to trigger the sas code which will generate the report.
0
 
arukuAuthor Commented:
Yes, I am looking to use some scripts and cron job to do the automation where it should run everyday and the results should be mailed to the email
0
 
Aloysius LowCommented:
which part do you require assistance on in this case? the cron job portion, the shell script portion to execute the sas code, or the email portion?

is your sas code already producing a physical file which can be sent?
0
 
arukuAuthor Commented:
Yes, My sas code is producing a txt file but I need to do the scripting part where I need to include this code in the scripts and then trigger a cron job every day.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.