Setting error codes

This chapter describes how IBM Z Workload Scheduler sets error codes to describe the outcome of running a computer workstation operation. You can also set error codes manually from the Ready List or from the MCP panel.

When a computer workstation operation (either a job or started task) ends, IBM Z Workload Scheduler determines the conditions under which it ended by inspecting the error code of the operation. Depending on the value you specified for the RETCODE parameter of the EWTROPTS statement, IBM Z Workload Scheduler either uses the return code from the last executed step of the job or the highest return code from any step.

You can specify whether you want certain errors for all jobs to be considered acceptable. You can also specify that particular errors for specific jobs are to be considered acceptable. Unless informed otherwise, IBM Z Workload Scheduler will, upon identifying an error, set the operation status to E (ended-in-error).

Note: With PQ87904 APAR, when the error in a job is determined by the EQQCLEAN step, that is a step inserted into the job by the Restart and Cleanup function, IBM Z Workload Scheduler sets the operation status to E, overriding any other specification