11.07.2015 Views

Fortran 90 Handbook

Fortran 90 Handbook

Fortran 90 Handbook

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

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

9Rules:1. The END= specifier may appear only in a sequential access READstatement; note that the END= specifier must not appear in a WRITEstatement.2. If an IOSTAT= specifier is present, an end-of-file condition occurs, andno error condition occurs, the IOSTAT variable specified becomesdefined with a processor-dependent negative value.3. If the file is an external file, it is positioned after the end-of-file record.4. If an end-of-file condition occurs and no error condition occurs duringthe execution of the READ statement, the program branches to thelabel in the END= specifier. The label must be a branch target in thesame scoping unit as the READ statement.EOR= labellabelis the label of a branch target statement takenwhen an end-of-record condition occursRules:1. The program branches to the labeled statement specified by the EOR=specifier if an end of record is encountered for a nonadvancing READstatement. The label must be a branch target in the same scoping unitas the statement containing the EOR= specifier.2. The EOR= specifier may appear only in a READ statement with anADVANCE= specifier with a value of NO, that is, a nonadvancingREAD statement.3. If an end-of-record condition occurs and no error condition occursduring the execution of the READ statement:a. The file is positioned after the current record.b. The variable given in the IOSTAT= specifier, if present, becomesdefined with a processor-dependent negative value.c. If the connection has been made with the PAD= specifier of YES,the record is padded with blanks to satisfy the input item list andthe corresponding data edit descriptor that requires morecharacters than are provided in the record.364 <strong>Fortran</strong> <strong>90</strong> <strong>Handbook</strong>Copyright © 1992 J. Adams, W. Brainerd, J. Martin, B. Smith, and J. Wagener

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

Saved successfully!

Ooh no, something went wrong!