Use the AFHOUNTM macro to specify a single unit, or group of units,
that is to be associated with a set of DCB default values. Use the
AFHOUNTM macro in conjunction with the AFHODCBM macro.
Syntax of AFHOUNTM macro instruction
AFHOUNTM { unitno | (unitno, qty) | RDRUNIT | PRTUNIT | PUNUNIT } ,DCBSET=label
- unitno
- The unit number, or the first in a series of consecutive unit
numbers, for which the set of default DCB characteristics referenced
by the DCBSET parameter is to be applied. If unitno is the number
of the error message unit (or if the error message unit is included
in the range covered by qty, following), the specification is ignored
for the error message unit.
- qty
- The number of consecutive unit numbers, beginning with unitno,
for which the set of default DCB characteristics referenced by the
DCBSET parameter is to be applied.
- RDRUNIT
- Indicates that the set of default DCB characteristics referenced
by the DCBSET parameter is to be applied to the standard input unit.
The standard input unit is the unit to which
a READ statement applies when the unit identifier is given as *. The
number of the standard input unit is the value given by the RDRUNIT
runtime option or its default.
Even though there may also be an
AFHOUNTM macro instruction that refers to the standard input unit
by its unit number (that is, with the unitno form of specification),
the AFHOUNTM with the RDRUNIT parameter takes precedence and applies
to the standard input unit.
If there is no AFHOUNTM macro instruction
with a RDRUNIT parameter, then the default DCB characteristics for
the standard input unit are those referenced by an AFHOUNTM macro
instruction that refers to this unit with the unitno form of specification.
- PRTUNIT
- Indicates that the set of default DCB characteristics referenced
by the DCBSET parameter is to be applied to the print unit.
The print unit is one of the standard output units
and is the unit to which either a WRITE statement with a unit identifier
of * or a PRINT statement applies. The
number of the print unit is the value given by the PRTUNIT runtime
option or its default if the number of the print unit is different
than the number of the error message unit.
The error message unit the unit to which output
such as error messages and dumps from services such as CDUMP and SDUMP
is directed. The number of the error message
unit is the value given by the ERRUNIT runtime option or its default.
The punch unit is one of the standard output
units and is the unit to which a PUNCH statement applies. The number
of the punch unit is the value given by the PUNUNIT runtime option
or its default.
Even though there may also be an AFHOUNTM macro
instruction that refers to the print unit by its unit number (that
is, with the unitno form of specification), the AFHOUNTM with the PRTUNIT parameter
takes precedence and applies to the print unit.
If there is
no AFHOUNTM macro instruction with a PRTUNIT parameter and if the
print unit and the error message units are different units, then the
default DCB characteristics for the print unit are those referenced
by an AFHOUNTM macro instruction that refers to this unit with the unitno form
of specification.
- PUNUNIT
- Indicates that the set of default DCB characteristics referenced
by the DCBSET parameter is to be applied to the punch unit. The punch unit is one of the standard output units
and is the unit to which a PUNCH statement applies. The number of
the punch unit is the value given by the PUNUNIT runtime option or
its default.
Even though there may also be an AFHOUNTM macro instruction
that refers to the punch unit by its unit number (that is, with the unitno form
of specification), the AFHOUNTM with the PUNUNIT parameter takes
precedence and applies to the punch unit.
If there is no AFHOUNTM
macro instruction with a PUNUNIT parameter, then the default DCB
characteristics for the punch unit are those referenced by a AFHOUNTM
macro instruction that refers to this unit with the unitno form
of specification.
- DCBSET=label
- The identifier of the DCB attributes to associate with this
unit, set of units, or standard I/O unit. This is the name given in
the associated AFHODCBM macro instruction.