EOJ (End of Job) Macro

Issue the macro in the main (or only) task within a partition, to inform the system that the job step is finished.

If a subtask issues an EOJ, the subtask is detached and the remainder of the partition continues. If the main task issues EOJ, any abnormal termination exits set up via STXIT AB are taken for the subtasks still attached.

Format

Read syntax diagramSkip visual syntax diagramnameEOJRC=n(15)

Requirements for the caller

AMODE:
24 or 31
RMODE:
24 or ANY
ASC Mode:
Primary or AR (access register)

Parameters

RC= n | (15)
Indicates a user-specified return code, between 0 and 4095, which is passed to job control to reflect the result of the job step and to allow conditional execution of subsequent job steps.

If register notation is used, the return code must be contained in bytes 2 and 3 of the register.

If this operand is included, execution of the EOJ macro is allowed below the 16 MB line only (RMODE 24).

If the operand is omitted, no return code is passed to Job Control.