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.

Input/Output<br />

10.6.6 End-of-File Specifier<br />

The form of an end-of-file specifier in an input/output statement is:<br />

END = s<br />

s is a statement label. When an end-of-file condition occurs, execution is transferred to the<br />

statement labelled by s.<br />

If an end-of-file condition occurs during the execution of an input/output statement and the END= specifier<br />

is present then execution of the program is not terminated.<br />

10.7 Printing of Formatted Records<br />

Printing occurs when formatted records are transferred to a device which interprets the first character of the<br />

record as a special spacing command. The remaining characters in the record are "printed". Printing can be<br />

accomplished by use of either the PRINT statement or the WRITE statement. What actually determines<br />

whether or not you are "printing" is the device (or file) to which records are transferred.<br />

The first character of the record controls the vertical spacing. This feature is quite often called ASA<br />

(American Standards Association) carriage control.<br />

Character<br />

Vertical Spacing Before Printing<br />

Blank<br />

One Line<br />

0 Two Lines<br />

- Three Lines<br />

1 To First Line of Next Page<br />

+ No Advance<br />

The "−" control character is an extension to the <strong>FORTRAN</strong> <strong>77</strong> language that is supported by many<br />

"printing" devices.<br />

Printing of Formatted Records 223

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

Saved successfully!

Ooh no, something went wrong!