Recovery responsibilities for a suspended SRB

During address space termination, the recovery programs established by suspended SRB routines in that address space do not get control. For this reason, the program that suspends those SRB routines should provide recovery for the SRB routine for the time the SRB routine is suspended. To do this, the resuming or purging program should have used the RESMGR macro to establish a resource manager that gains control should the address space terminate. The resource manager must free any resources owned by the SRB routine and perform recovery, as needed.

When the target of a PURGEDQ macro is a terminating task, the system looks for suspended SRB routines that were scheduled with SRBPTCB and SRBPASID fields that identify the terminating task. The system abnormally ends those SRB routines with an X'47B' system completion code.

When the target of a PURGEDQ macro is the issuer's primary address space, the system looks for preemptable SRB routines that were scheduled with SRBPTCB, SRBPASID, and SRBRMTR fields that match the TCB, ASID, and RMTR parameters on PURGEDQ. If the fields match the parameters, the system abnormally ends the SRB routine, after converting the SRB to be nonpreemptable and nonquiescable, with an X' 47B' system completion code, and waits for termination to complete.