FORTRAN Reference Manual
Statements
FORTRAN Reference Manual—528615-001
7-66
INQUIRE Statement
ACCESS = acc
acc is a character variable or array element. If the file is connected for 
sequential access, acc returns the value 'SEQUENTIAL'; if the file is 
connected for direct access, acc returns the value 'DIRECT'.
SEQUENTIAL = seq
seq is a character variable or array element. If sequential access is one of the 
access methods for the file (regardless of its present connection), seq returns 
the value 'YES'; if the file can never be connected for sequential access, seq 
returns the value 'NO'. If the system cannot determine whether sequential 
access is permitted, seq returns the value 'UNKNOWN'. 
HP FORTRAN always returns 'YES' in seq.
DIRECT = dir
dir is a character variable or array element. If direct access is one of the 
access methods for the file (regardless of its present connection), dir returns 
the value 'YES'; if the file can never be connected for direct access; dir 
returns the value 'NO'. If the system cannot determine whether direct access is 
permitted, dir returns the value 'UNKNOWN'. 
HP FORTRAN returns:
•
'YES' for unstructured files, EDIT format files, and relative files
•
'NO' for all other files with Guardian device codes less than 12
•
'UNKNOWN' for all other files
FORM = fm
fm is a character variable or array element. If the file is connected for formatted 
I/O, fm returns the value 'FORMATTED'; if the file is connected for unformatted 
I/O, fm returns the value 'UNFORMATTED'.
FORMATTED = fmt
fmt is a character variable or array element. If the file can be connected for 
formatted I/O (regardless of its present connection), fmt returns the value 
'YES'. If the file can never be connected for formatted I/O, fmt returns the 
value 'NO'. If the system cannot determine whether formatted I/O is permitted, 
fmt returns the value 'UNKNOWN'. If there is no connection, fmt remains 
unchanged.
HP FORTRAN always returns 'YES' in fmt.
UNFORMATTED = unf
unf is a character variable or array element. If the file can be connected for 
unformatted I/O (regardless of its present connection), unf returns the value 










