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:
  1. 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.
  2. 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.

  3. If the return code is 0, HCL Workload Automation for Z sets the operation status to C. Otherwise, it continues checking.
  4. If the operation definition specifies no error tracking, HCL Workload Automation for Z sets the operation status to C. Otherwise, it continues checking.
  5. 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.
  6. 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.
  7. 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.