Using the CALLDISP macro

Routines that suspend the current RB can use the CALLDISP macro with the BRANCH=YES option to enter the suspended state. The BRANCH=YES option allows an issuer of the SUSPEND macro with its RB=CURRENT option to exit while leaving the current RB in the wait state. This option causes the system to save status and dispatches the next ready dispatchable unit.

Some considerations for using the BRANCH=YES option on the CALLDISP macro are:
Note:
  1. A type 1 and type 6 SVC must not issue the CALLDISP macro.
  2. The LOCAL or CML lock can be used to serialize the SUSPEND processing and establish the RESUME processing.