Get the task dubbed by issuing a callable service. The task may
already have been dubbed by having been pthread-created.
Establish a task and an address space dynamic resource manager
using the MVS™ RESMGR service.
There are several RESMGR options you can choose when creating a resource
manager. It is recommended that you choose to monitor only the address
space containing the process, in order to limit system overhead during
termination of other address spaces; and that you monitor the top
task of the process. Note that the resource manager must be established
via the RESMGR service; and that this must be done after the task
has been dubbed, or your resource manager will be called after the
systems resource manager responsible for process-level termination.
Schedule one or more SRBs, passing the OAPB address obtained from
the PRLI.
Ensure that all SRBs have completed, and that they will not issue
any more callable services.