Return codes

You can pass a return code back to KGUP in the KGXP control block (offset +8). The exit can use the return code to cause KGUP to reject control statements or to end KGUP. Return code values, in decimal, for record pre- or postprocessing exit calls are:
Return Code
Description
0
Normal, continue processing.
4
Reject control statement, but do not end KGUP.
8
End KGUP.

All other return codes are not valid and cause KGUP to end.

Return code values, in decimal, for the KGUP pre- or postprocessing invocations are:
Return Code
Description
0
Normal, continue processing.
>0
End KGUP.