This general macro assigns the requested unit record devices (card readers
and printers) to the issuing application program.
Format
- label
- A symbolic name can be assigned to the macro statement.
- EXAD=label
- This is required. The label of an operational program error routine
within the current program segment.
- PR=symbol1n
- Each parameter specifies the symbolic number of a printer (1-7), or
specifies the available printer (A). The only valid parameters are 1,
2, 3, 4, 5, 6, 7, and A. The PR parameter must be specified if CR is
not specified. The available printer is the first printer defined to
TPF.
- CR=symbol2n
- Each parameter specifies the symbolic number of a card reader (1-3)
or specifies the available card reader (A). The only valid parameters
are 1, 2, 3, and A. The CR parameter must be specified if PR is not
specified. The available card reader is the first card reader defined
to TPF.
- PR1=YES
- This specifies that Printer Number One is to be used. YES is the
only allowed value. One of PR1, PR2, and CR must be coded.
- PR2=YES
- Specifies that Printer Number Two is to be used. YES is the only
allowed value. One of PR1, PR2, or CR must be coded.
- CR=YES
- This specifies that Card Reader One is to be used. YES is the only
allowed value. One of PR1, PR2, or CR must be coded.
Entry Requirements
R9 must contain the address of the entry control block (ECB).
Return Conditions
- If each specified device is available for assignment, control is returned
to the next sequential instruction (NSI). Otherwise, control is
returned to the address specified by EXAD.
- The contents of scratch registers R14 and R15 are unknown. The
condition code is not saved across the execution of this macro. The
contents of the remaining registers are saved.
- The specified devices are assigned for use by this program until the EXITC
macro is issued.
Programming Considerations
Examples
These two examples are equivalent:
USURC EXAD=ERROR,PR=(1,2),CR=1
USURC EXAD=ERROR,PR1=YES,PR2=YES,CR=YES