RPL exit routines

The TCB or SRB mode of execution of an RPL exit routine is determined primarily by whether the associated RPL-based request uses authorized path. See Authorized path, for further information on authorized paths. The SRBEXIT parameter on the APPL definition statement determines the execution mode only if authorized path is not used.

If authorized path is used for an RPL-based request, the RPL exit routine always runs under an SRB, independently of the specification of the SRBEXIT parameter. The exit routine need not return to VTAM®.

If authorized path is not used for an RPL-based request, SRB mode is used for the RPL exit routine only if SRBEXIT=YES: TCB mode is used if SRBEXIT=NO. In either case, the exit routine must return to VTAM upon completion. If SRBEXIT=YES is specified, the application program must be authorized as described in EXLST exit routines other than LERAD and SYNAD. The program environment must be maintained for return to VTAM.

In all cases, if SRB mode is used for an RPL exit routine, the exit routine is entered in supervisor state with key 0. In TCB mode, problem state and the key associated with the TCB are used.