HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
OPEN
Chapter 10410
OPEN
Connects file to a unit.
Syntax
OPEN (
io-specifier-list
)
io-specifier-list
is a list of the following comma-separated I/O specifiers:
[UNIT=]
unit
specifies the unit to connect to an external file.
unit
must be an integer
expression that evaluates to a number greater than 0. If the optional
keyword UNIT= is omitted,
unit
must be the first item in
io-specifier-list
.
ACCESS=
character-expression
specifies the method of file access.
character-expression
can be one of the
following arguments:
ACTION=
character-expression
specifies the allowed data-transfer operations.
character-expression
can
be one of the following arguments:
Table 10-33
'DIRECT' Open file for direct access.
'SEQUENTIAL' Open file for sequential access
(default).
' POSITION=
APPEND'
To open a file for append (to
position the file just before the
end-of-file record)
Table 10-34
'READ' Do not allow WRITE and
ENDFILE statements.
'WRITE' Do not allow READ statements.