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 />

CARRIAGECONTROL = cc<br />

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

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

It is assigned the value ’YES’ if the first character of each record is interpreted as a<br />

carriage control character and ’NO’ if no interpretation is placed on the first character of<br />

each record.<br />

RECORDTYPE = rct<br />

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

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

It is assigned a value that represents the record type (or record structure) that is used for the<br />

file. The value assigned depends on the system on which you are running the program.<br />

See the compiler User’s Guide for a discussion of record types.<br />

BLOCKSIZE = bl<br />

bl is an integer variable or integer array element.<br />

It is assigned a value that represents the internal buffer size that is used for input/output<br />

operations on the file. The value assigned depends on the system on which you are running<br />

the program. See the compiler User’s Guide for a discussion of default internal buffer size.<br />

2.55.4 Definition Status of Specifiers - Inquire by File<br />

The following table summarizes which specifier variables or array elements become defined with values<br />

under what conditions when using the FILE= specifier.<br />

IOSTAT = ios (1)<br />

EXIST = ex (2)<br />

OPENED = od (2)<br />

NUMBER = num (4)<br />

NAMED = nmd (3)<br />

NAME = fn (3)<br />

ACCESS = acc (5)<br />

SEQUENTIAL = seq (3)<br />

DIRECT = dir (3)<br />

FORM = fm (5)<br />

FORMATTED = fmt (3)<br />

UNFORMATTED = unf (3)<br />

RECL = rcl (5)<br />

NEXTREC = nr (5)<br />

BLANK = blnk (5)<br />

ACTION = act (5)<br />

CARRIAGECONTROL = cc (5)<br />

RECORDTYPE = rct (5)<br />

BLOCKSIZE = bl (5)<br />

1. The IOSTAT= specifier variable is always defined with the most recent error status. If an error<br />

occurs during execution of the INQUIRE statement then the error status is defined with a<br />

positive integer; otherwise the status is that of the most recent input/output statement which<br />

referenced that file.<br />

2. The specifier always becomes defined unless an error condition occurs.<br />

INQUIRE Statement 97

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

Saved successfully!

Ooh no, something went wrong!