24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>FORTRAN</strong> Statements<br />

Inquire by file: The value .TRUE. is assigned if the specified file is connected to a unit;<br />

otherwise the value .FALSE. is assigned.<br />

Inquire by unit: The value .TRUE. is assigned if the specified unit is connected to a file;<br />

otherwise the value .FALSE. is assigned.<br />

NUMBER = num<br />

num is an integer variable or integer array element that is assigned the value of the unit<br />

number to which the file is connected. If no unit is connected to the file then num becomes<br />

undefined.<br />

NAMED = nmd<br />

nmd is a logical variable or logical array element name that is assigned the value .TRUE. if<br />

the file has a name; otherwise the value .FALSE. is assigned.<br />

NAME = fn fn is a character variable or character array element. <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> also<br />

permits fn to be a character substring.<br />

It is assigned the name of the file, if the file has a name; otherwise it becomes undefined.<br />

The file name that is returned need not be the same as that given in a FILE= specifier but it<br />

must be suitable for use in the FILE= specification of an OPEN statement (e.g., the file<br />

name returned may have additional system qualifications attached to it).<br />

ACCESS = acc<br />

acc is a character variable or character array element.<br />

permits acc to be a character substring.<br />

<strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> also<br />

It is assigned the value ’SEQUENTIAL’ if the file is connected for sequential access. It is<br />

assigned the value ’DIRECT’ if the file is connected for direct access. It is assigned an<br />

undefined value if there is no connection.<br />

SEQUENTIAL = seq<br />

seq is a character variable or character array element.<br />

permits seq to be a character substring.<br />

<strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> also<br />

It is assigned the value ’YES’ if SEQUENTIAL is included in the set of allowed access<br />

methods for the file, the value ’NO’ if SEQUENTIAL is not included in the set of allowed<br />

access methods for the file, or ’UNKNOWN’ if <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> is unable to<br />

determine whether or not SEQUENTIAL is included in the set of allowed access methods<br />

for the file.<br />

DIRECT = dir dir is a character variable or character array element.<br />

permits dir to be a character substring.<br />

<strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> also<br />

It is assigned the value ’YES’ if DIRECT is included in the set of allowed access methods<br />

for the file, the value ’NO’ if DIRECT is not included in the set of allowed access methods<br />

for the file, or ’UNKNOWN’ if <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> is unable to determine<br />

whether or not DIRECT is included in the set of allowed access methods for the file.<br />

FORM = fm fm is a character variable or character array element. <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> also<br />

permits fm to be a character substring.<br />

INQUIRE Statement 95

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!