How error codes are set for jobs on z/OS®

Error codes can be set in these ways:
  • Automatically, based either on the completion codes of the job or started-task step or on internal error detection.
  • By the job completion checker. See Setting error codes using the job completion checker.
  • Manually from the Ready List panel or from the MCP panel.
  • Using the EQQUSIN subroutine. Refer to Customization and Tuning.
  • Using the program interface. Refer to Programming Interfaces.
  • Using the OPSTAT command in batch or TSO. See TSO commands.

In most cases, HCL Workload Automation for Z sets error codes using the z/OS® user and system completion codes. In some special cases (for example, when there has been a JCL error), HCL Workload Automation for Z sets a special error code to enable it to react correctly to the situation.