Sample code using authorized path

This sample program, SAMP3, shows an application program using the authorized path facility under the control of both a task control block (TCB) and a service request block (SRB). The logic for this sample application program is similar to the logic for sample program 2 in Logic of a more complicated application program.

SAMP3 uses the authorized forms of the SEND, RECEIVE, and RESETSR macroinstructions to perform communication processing. SAMP3 shows:
  • How to enter supervisor state
  • Which operating system macroinstructions to use.

This sample can be used as a guideline for coding application programs that use the authorized path facility; the sample program is not intended to be coded and used as it is shown. For further details about authorized path, see Authorized path.