Resuming execution of a suspended RB

The RESUME macro, which is supported in cross memory mode, provides an efficient means for indicating the completion of an event. The RESUME macro specifies the TCB and RB that were previously suspended by the SUSPEND macro. The specified TCB and RB must be addressable in the currently addressable address space. Only routines executing in supervisor state and PSW key zero can issue the RESUME macro.

The RESUME macro and the service routine it calls must serialize the use of the task that is being resumed. This serialization might require the local lock of the task's address space, called the target address space. Because disabled or locked callers of RESUME are not allowed to obtain a local lock, the RESUME macro has the MODE and ASYNC options to handle these types of situations.

Note: The ASYNC parameter for the RESUME macro is spelled differently from similar parameters on other macros.

The MODE option specifies whether or not the RESUME operation must complete (MODE=UNCOND) or not (MODE=COND).

The ASYNC option specifies whether or not RESUME can schedule an SRB to perform the resume if necessary. These RESUME options can be combined in four ways:

RESUME provides return codes in register 15 to indicate the result of the RESUME attempt. See the RESUME macro in z/OS MVS Programming: Authorized Assembler Services Reference LLA-SDU for details on the return codes.

The RESUME macro requires that you include the IHAPSA mapping macro. If the ASCB option is not specified, then the MODE=UNCOND and ASYNC=Y combination requires that you include the CVT mapping macro.