Previous Topic: PasswordsNext Topic: Job Output


Testing for Success

When the agent starts a job, it sends a message to notify CA IAS that the job is now "executing". CA IAS passes the information to the scheduling manager so that the job can be marked as “started”.

When the job completes, the agent sends another message to notify CA IAS that the job is now "complete" or has "failed".

Traditionally, scheduling managers use a job's return code to determine whether the job completed successfully or failed. The scheduling manager determines the success of each job after it has completed.

Agent jobs run through CA IAS are evaluated differently. The agent determines the success or failure of each job and notifies the scheduling manager.

Most job types let you code one or more EXITCODE statement to specify acceptable return codes for the job. These EXITCODE statements control how the agent determines the success or failure of the job. By default, an exit code of 0 (zero) indicates job success and any other code indicates job failure. You can use the EXITCODE statement to indicate an exit code other than 0 or a range of codes as job success.