EOJ Function

The EOJ function is used to initiate Com-plete end-of-job processing for an online or batch program.

Note:
If a batch program terminates without issuing an EOJ function, the session not terminated by the target Com-plete.

Either the EOJ or the WRTD function of Com-plete can be used to terminate the program normally. The WRTD function differs from the EOJ function in that it permits the application program to issue a termination message.

Format

The format for using the EOJ function is:

EOJ 

No arguments are provided or Required.

Return Codes

No return codes are given by the EOJ function. Since end-of-job processing is invoked, the user program will not regain control.

Abends

In case of an abnormal termination, consult the system programmer.