BPX1EXI (_exit) example
The following code ends the program and returns an exit
code of 44 to the waiting parent process. For the callable
service, see _exit (BPX1EXI, BPX4EXI) — End a process and bypass the cleanup.
AMODE 64 callers use BPX4EXI (_exit) example.
XC WAST(WAST#LENGTH),WAST
MVI WASTEXITCODE,44 User defined exit code
SPACE
CALL BPX1EXI, End a process +
(WAST), Input: Status field +
VL,MF=(E,PLIST) ----------------------------------