Determining the success or failure of a job
This summarizes how HCL Workload Automation for Z determines
the next status of an operation
that ends:
- HCL Workload Automation for Z creates a job-end event with the highest or last return code, depending on the RETCODE parameter of the EWTROPTS statement.
- If the job-completion checker (JCC) is active, it gets the event.
The JCC can set a new value for the return code. After JCC processing,
the event passes to the controller.
The event reaches the event queue at the controller.
- If the return code is 0, HCL Workload Automation for Z sets the operation status to C. Otherwise, it continues checking.
- If the operation definition specifies no error tracking, HCL Workload Automation for Z sets the operation status to C. Otherwise, it continues checking.
- If the return code matches a NOERROR entry (a NOERROR statement or the NOERROR keyword of the JTOPTS statement), HCL Workload Automation for Z sets the operation status to C. Otherwise, it continues checking.
- If the return code is less than or equal to HIGHRC (the value in the operation definition or the value on the JTOPTS statement), HCL Workload Automation for Z sets the operation status to C. Otherwise, it continues checking.
- If the return code matches an entry on the ERRRES keyword of the JTOPTS statement, HCL Workload Automation for Z sets the operation status to A, extended status R. Otherwise, it sets the operation status to E, and recovery processing can now occur.