HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
OPEN
Chapter 10 413
POSITION=
character-expression
specifies the position of an existing file to be opened for sequential access.
character-expression
can be one of the following arguments:
If the file to be opened does not exist, this specifier is ignored. New files are
always positioned at their start.
RECL=
integer-expression
specifies the length of each record in a file to be opened for direct access. The
length is measured in characters (bytes). This specifier must be present
when a file is opened for direct access and is ignored if file is opened for
sequential access.
STATUS=
character-expression
specifies the state of the file when it is opened.
character-expression
can
be one of the following arguments:
Table 10-39
'ASIS' Leave file position unchanged
(default).
'REWIND' Position the file at its start.
'APPEND' Position the file just before the
end-of-file record.
Table 10-40
'OLD' Open an existing file. FILE=
must also be specified and the
named file must exist.
'NEW' Create a new file. FILE= must
also be specified and the named
file must not exist.
'UNKNOWN' If the file named in FILE=
exists, open it with the status of
OLD; if it does not exist, open it
with the status of NEW. This is
the default status.