HP Fortran Programmer's Reference (September 2007)

HP Fortran statements
INQUIRE
Chapter 10 379
returns the I/O status after the statement executes. If the statement
successfully executes,
integer-variable
is set to zero. If an error occurs, it
is set to a positive integer that indicates which error occurred..
NAME=
character-variable
returns the name of file connected to the specified unit. If the file has no
name or is not connected, NAME= returns the string UNDEFINED.
NAMED=
logical-variable
returns the following values, indicating whether or not the file has a name:
NEXTREC=
integer-variable
returns the number of the next record to be read or written in a file
connected for direct access. The value is the last record read or written +1. A
value of 1 indicates that no records have been processed. If the file is not
connected or it is a device file or its status cannot be determined,
integer-variable is undefined.
NUMBER=
integer-variable
returns the unit number that is connected to the specified file. If no unit is
connected to the named file,
integer-variable
is undefined.
OPENED=
logical-variable
returns the following values, indicating whether or not the file has been
opened (that is, is connected):
PAD=
character-variable
Table 10-19
'TRUE' File has a name.
'FALSE' File does not have a name.
Table 10-20
'TRUE' File is connected.
'FALSE' File is not connected.