7.1.1.2 Logical Unit Specifier

The logical unit specifier identifies the logical unit to be accessed. The logical unit specifier takes either of the following forms:

{ [UNIT=]u }
{ [UNIT=]* }
u
Is an integer expression with a value that refers to a specific file or I/O device. On VAX processors, the integer is in the range of 0 through 119; on Alpha processors, the integer is in the range of 0 through 2**31-1.

If necessary, the value is converted to integer data type before use.

*
Specifies that the default input or output unit is to be accessed.

The keyword UNIT is optional if the logical unit specifier is the first parameter in the control list.

A logical unit number is assigned to a file, device, or Tru64 UNIX pipe in one of two ways:

If you use READ to implicitly open a file, the file is opened as STATUS='OLD'. If you use WRITE to implicitly open a file, the file is opened as follows:

For More Information:


Previous Page Next Page Table of Contents