A step return code (or just a return code or condition code) indicates whether or not a job step ran successfully. If a step ends normally, the return code is usually 0. But if the step does not end normally, the return code can have a value from 1 to 4095.
The program that’s executed during the step determines what the return code will be and what it represents.
0 – Program ran to successful completion.
4 – Program encountered a minor error but was able to recover.
8 – The program encountered a problem that inhibited successful execution.
12 – The program encountered a problem that inhibited successful execution; normally, this indicates a more serious error than return code 8.
16 – The program encountered a serious error and was not able to continue.
System completion code
- A system completion code (or just completion code) is generated when a job ends. If the job ends normally, the completion code is 000. If the job abends, the completion code consists of a three-digit code with a prefix of S, and it appears in the job output. In this case, it can also be called an abend code.
- Most completion codes include an additional reason code that helps further define what the problem is.
000 – Normal completion. The job ended successfully.
0C1- Operation exception. Can be caused by an invalid program branch or program data overwriting the instruction area of the program.
0C4- Protection exception. The program tried to access a storage area other than its own. Often happens when a storage array is accessed with an invalid index or subscript.
Segment-translation exception. The program tried to access storage that has not been obtained.
Page-translation exception. The program tried to access storage that was paged out.
0C5- Addressing exception. The program tried to access an invalid storage address.
0C7 – Varies-Data exception. Caused by invalid data used in a calculation.
122- The operator cancelled the job and requested a dump.
222 – The TSO/E user cancelled the job without requesting a dump.
322 – The job exceeded the CPU time limit specified by the TIME parameter or the default time allowed for the job.
722 – The job output limit specified by the OUTLIM, BYTES, CARDS, LINES, or PAGES parameter was exceeded.
804- The job’s virtual storage requirements exceeded the amount specified in the job or job step REGION parameter.
806 – Program not found. The system could not find the program module to execute.
822 – The region size requested is not available. Typically occurs when the REGION parameter requests a region size larger than what is currently available on the system.
B37- Disk volume is full. The volume requested in the DD statement is out of space or ran out of space during execution.