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
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.