Managing return codes

By default, all nonzero error codes are considered as an error. Optionally, you can define the error codes that, for job-tracking purposes, are not considered as errors. To do this, set the following parameters:
NOERROR
Defines a list of error codes that, for job-tracking purposes, are treated as normal completion codes. When setting this value on an HCL Workload Automation Agent, beware that the maximum length allowed for a return code is 4 digits. If the HCL Workload Automation Agent returns an error code higher than 9999, it is truncated at the fourth rightmost digit. For example, 12345 is considered as 2345.

For negative error codes, specify a five-character sequence starting with the minus (-) symbol, for example -0008.

ERRRES
Defines a list of error codes that, for job-tracking purposes, result in an automatic reset of an operation. The operation is reset to status A (arriving) and contains the message Error, automatically reset in its operation details panel. An error code can be either of the following:
  • 4-digit job or started-task return code (nnnn)
  • System abend code (Sxxx)
  • User abend code (Uxxx)
  • HCL Workload Automation for Z-defined code

The HIGHRC parameter is supported for positive RC on HCL Workload Automation Agents and agents. Jobs ending with negative RC are always considered in error. The negative RC are handled through NOERROR. For a detailed description of NOERROR and ERRRES, see Customization and Tuning.

The following is a list of the return codes for each job type with advanced options: