Autosys - something like advanced scheduler
To use it on UNIX a special agent should be installed on server (with separate license)
It can easily run some commands in UNIX shell to run sas programs and also to get sas exit code (successfull or not)
In sas code you should (if it for EM projects, project must be created before):
- directly set the project name of EM project, project folder, name of workspace (to update an existing EMWS, or it will create new each time)
- directly assign each library (even pre-assigned)
Then, you can face with encoding problem - if encoding of sas in bathch mode is not equal to one's used in project - it solves by setting the encoding in config file, config must be declared in command line
To get sas exit code you can use $? statement.
It looks like this
./sas -noterminal -nonews full_name_of_your_program.sas -log full_name_of_log_file.txt -config full_name_of_config_file.cfg
(Log file must be created before)
echo $? > full_name_of_result_file.txt
(this file for sas exit code, file must be created before)
Autosys have to run this commands, and then to read result from result_file.txt
Result codes are here: http://support.sas.com/documentation/cdl/en/hostunx/63053/HTML/default/viewer.htm#p0h28whoxxvtztn15w...
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.