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

2.27 END AT END Statement<br />

END AT END<br />

The END AT END statement is used in conjunction with the structured AT END statement. The END AT<br />

END statement marks the end of a sequence of statements which are part of an AT END-block. The AT<br />

END statement marks the beginning of the AT END-block. The AT END-block is executed when the<br />

preceding READ statement terminates because of an end-of-file condition.<br />

Example:<br />

READ( UNIT=1, FMT=’(3I5)’ ) I, J, K<br />

AT END DO<br />

PRINT *, ’END-OF-FILE ENCOUNTERED ON UNIT 1’<br />

EOFSW = .TRUE.<br />

END AT END<br />

For more information, see the chapter entitled "Program Structure Control Statements" on page 193.<br />

END AT END Statement 57

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

Saved successfully!

Ooh no, something went wrong!