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...
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.