CA 7 guidelines for jobs defined with Exitcode(s) (Return Code(s) being submitted to an agent.
book
Article ID: 10449
calendar_today
Updated On:
Products
CA 7 Workload Automation
Issue/Introduction
When defining jobs that are submitted to an agent, it is the agent, not WA CA 7 Edition that determines the success or failure of a job. In some cases with certain job types, you are permitted to code one or more EXITCODE statements to specify the return codes that the agent treats as success or failure. 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 define a single exit code or a range of exit codes as either success or failure. If you specify multiple exit codes, enter the most specific exit codes first followed by the ranges.
Environment
Release: All
Resolution
The following are some examples.
Example 1:
Exit codes 0, 2, 4 indicate success.
All others indicate failure.
EXITCODE 0 SUCCESS
EXITCODE 2 SUCCESS
EXITCODE 4 SUCCESS
Example 2:
Exit codes in the range 0 through 100 indicate success.
Exit code 19 and exit codes in the range 101-200 indicate failure.
Exit codes in the range 201 through 300 indicate success.