FORTRAN Reference Manual
Compiler Directives
FORTRAN Reference Manual—528615-001
10-67
UNIT Compiler Directive
UNIT Compiler Directive
The UNIT directive causes one or more units to exist and declares the properties of the
files that will be connected to the units.
u-lower
u-upper
is a number in the range 1 through 999. u-lower is the lower bound of the range,
u-upper is the upper bound of the range.
units
is a list of unit ranges in the following form:
u-lower [ - u-upper ] [, u-lower [ - u-upper ] ]...
file
is an HP file name, DEFINE name, or a network system name.
create-spec
is one of the following:
CODE file-code
file-code is an integer in the range 0 through 32767 specifying the
Guardian file code to be associated with the file. The default value is 0.
REC record-size
record-size is an integer in the range 0 through 32767 that specifies the
record size for the file. The default value is 132.
UNITNAME name
specifies a name for the unit to be used as the logical-unit name in a
TACL ASSIGN command. The default value is FT nnn where nnn is the unit
number as a three-digit decimal integer: FT001 to FT999. name can be from 1
to 31 characters consisting of letters, digits, and hyphens.
access-code
is a keyword that is either INPUT, OUTPUT, or I-O and specifies the allowable
access for the unit. The default value is I-O.
UNIT
u lower u– upper–[]–
units , file[] , create spec–[]. . .()










