Search code examples
caautosys

Autosys exit code meaning


I'm studying CA autosys and I met a condition formula like Condition: e(job1,06.00) = 0 & e(job2,03.00) = 0. I know the exit code 0 means success. Then what does "06.00" and "03.00" mean?


Solution

  • It is called as Look-Back Conditions

    To specify a look-back dependency, enter the job name followed by a comma (,) then HH (hours), period (.) and MM (minutes).

    Sample JIL:

    insert_job: test_sample_04
    machine: localhost
    command: sleep 10
    condition: success(test_sample_01,12.00) AND failure(test_sample_02,24.00) AND
    success(test_sample_03)
    

    Explanation:

    • The last run of test_sample_01 completed successfully during the last 12 hours.
    • The last run of test_sample_02 completed with a FAILURE status during the last 24 hours.
    • The last run of test_sample_03 completed successfully at any time.

    For User case:

    condition: e(job1,06.00) = 0 & e(job2,03.00) = 0
    
    • The last run of job1completed with exit code of 0 in the last 6 hours

    • The last run of job2completed with exit code of 0 in the last 3 hours

    Reference: CA Workload Automation AE User Guide Release 11.3.6