BPX4EXI (_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 31 callers use BPX1EXI (_exit) example.
                                              
         XC    WAST(WAST#LENGTH),WAST                                   
         MVI   WASTEXITCODE,44       User defined exit code             
         SPACE                                                          
         CALL  BPX4EXI,              End a process                     +
               (WAST),               Input: Status field               +
               MF=(E,PLIST)          ----------------------------------