Previous Topic: Set an i5/OS Job's Process PriorityNext Topic: Send a Program's Return Code


Returning a Job's Exit Status to the Scheduling Manager

A job's exit code indicates whether the job completed successfully or failed. By default, the agent sends the job's ending severity code to the scheduling manager when a job completes. By default, an exit code of zero (0) is interpreted as job success and any other number indicates job failure.

In addition to sending the job's ending severity code, there are other ways to return a job's exit status. For example, you can send the return code of an ILE program or module as the exit status or you can specify a user-defined exit code of 100 as success.

You can return a job's exit status to the scheduling manager using the following methods: