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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Language</strong> <strong>Reference</strong><br />

3. This specifier becomes defined with a value only if the file name specified in the FILE=<br />

specifier is an acceptable file name and the named file exists. Also, no error condition can occur<br />

during the execution of the INQUIRE statement.<br />

4. This specifier becomes defined with a value if and only if od becomes defined with the value<br />

.TRUE.. Also, no error condition can occur during the execution of the INQUIRE statement.<br />

5. This specifier may become defined with a value only if od becomes defined with the value<br />

.TRUE.. However, there may be other conditions under which this specifier does not become<br />

defined with a value. In other words, (5) is a necessary, but not sufficient condition. For<br />

example, blnk is undefined if the file is not connected for formatted input/output.<br />

2.55.5 Definition Status of Specifiers - Inquire by Unit<br />

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

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

IOSTAT = ios (1)<br />

EXIST = ex (2)<br />

OPENED = od (2)<br />

NUMBER = num (3)<br />

NAMED = nmd (3)<br />

NAME = fn (3)<br />

ACCESS = acc (3)<br />

SEQUENTIAL = seq (3)<br />

DIRECT = dir (3)<br />

FORM = fm (3)<br />

FORMATTED = fmt (3)<br />

UNFORMATTED = unf (3)<br />

RECL = rcl (3)<br />

NEXTREC = nr (3)<br />

BLANK = blnk (3)<br />

ACTION = act (3)<br />

CARRIAGECONTROL = cc (3)<br />

RECORDTYPE = rct (3)<br />

BLOCKSIZE = bl (3)<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 unit.<br />

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

3. This specifier becomes defined with a value only if the specified unit exists and if a file is<br />

connected to the unit. Also, no error condition can occur during the execution of the INQUIRE<br />

statement.<br />

For more information on input/output, see the chapter entitled "Input/Output" on page 215.<br />

98 INQUIRE Statement

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

Saved successfully!

Ooh no, something went wrong!