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>Language</strong> <strong>Reference</strong><br />

It is assigned the value ’FORMATTED’ if the file is connected for formatted input/output,<br />

the value ’UNFORMATTED’ if the file is connected for unformatted input/output, or an<br />

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

FORMATTED = fmt<br />

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

permits fmt 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 FORMATTED is included in the set of allowed forms for<br />

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

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

FORMATTED is included in the set of allowed forms for the file.<br />

UNFORMATTED = unf<br />

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

permits unf 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 UNFORMATTED is included in the set of allowed forms<br />

for the file, the value ’NO’ if UNFORMATTED is not included in the set of allowed forms<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 UNFORMATTED is included in the set of allowed forms for the file.<br />

RECL = rcl<br />

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

length of the file connected for direct access. If the file is connected for formatted<br />

input/output, the length is the number of characters. If the file is connected for unformatted<br />

input/output, the length is measured in processor-dependent units (bytes). See the compiler<br />

User’s Guide for a discussion of record length or size. If there is no connection or if the<br />

file is not connected for direct access then the value is undefined. The RECL= specifier is<br />

also allowed if the file is connected for sequential access.<br />

NEXTREC = nr<br />

nr is an integer variable or integer array element that is assigned the value n+1, where n<br />

is the record number of the last record read or written on the file connected for direct<br />

access. If the file is connected but no records have been read or written then the value is 1.<br />

If the file is not connected for direct access or if the position of the file can not be<br />

determined because of an input/output error then nr becomes undefined.<br />

BLANK = blnk<br />

blnk is a character variable or character array element. <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong><br />

also permits blnk to be a character substring.<br />

It is assigned the value ’NULL’ if null blank control is in effect for the file connected for<br />

formatted input/output, and is assigned the value ’ZERO’ if zero blank control is in effect<br />

for the file connected for formatted input/output. If there is no connection, or if the file is<br />

not connected for formatted input/output, blnk becomes undefined.<br />

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

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

It is assigned the value ’READ’ if data can only be read from the file, ’WRITE’ if data<br />

can only be written from the file, and ’READWRITE’ if data can be both read and written.<br />

96 INQUIRE Statement

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

Saved successfully!

Ooh no, something went wrong!