BPX4MPC (mvsprocclp) example
The following code causes all z/OS UNIX-related
resources to be released for this thread, and if this is the last
thread in the process, for the process. For the callable service,
see mvsprocclp (BPX1MPC, BPX4MPC) — Clean up kernel resources. For the data structure, see BPXYWAST — Map the wait status word. AMODE 31 callers use BPX1MPC (mvsprocclp) examples.
XC WAST(WAST#LENGTH),WAST
MVI WASTEXITCODE,57 User defined exit code
SPACE ,
CALL BPX4MPC, MVS Process cleanup +
(WAST, Input: Ending status code 0-255 +
RETVAL, Return value: 0, -1 or 1 +
RETCODE, Return code +
RSNCODE), Reason code +
MF=(E,PLIST) ----------------------------------