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

2.66 PRINT Statement<br />

Two forms of the PRINT statement are supported by <strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong>.<br />

2.66.1 Standard PRINT Statement<br />

<br />

PRINT f [,olist]<br />

where:<br />

f<br />

olist<br />

is a format identifier.<br />

is an optional output list.<br />

2.66.2 Extended PRINT Statement<br />

PRINT, olist<br />

where:<br />

olist<br />

is an output list.<br />

2.66.3 Description of PRINT Statement<br />

The PRINT statement is used to transfer data from the executing <strong>FORTRAN</strong> program to an external device<br />

or file.<br />

Format Identifier - A format identifier is one of the following:<br />

1. A statement label of a FORMAT statement that appears in the same program unit as the format<br />

identifier.<br />

2. An integer variable name that has been assigned the statement label of a FORMAT statement that<br />

appears in the same program unit as the format identifier (see the ASSIGN statement).<br />

3. An integer array name.<br />

4. A character array name.<br />

5. Any character expression except one involving the concatenation of an operand whose length<br />

specification is (*) unless the operand is a symbolic constant (see the PARAMETER statement).<br />

6. An asterisk (*), indicating list-directed formatting.<br />

<strong>Open</strong> <strong>Watcom</strong> <strong>FORTRAN</strong> <strong>77</strong> supports a variation of list-directed formatting in which the<br />

asterisk (*) may be omitted. It is equivalent to<br />

PRINT * [,olist]<br />

118 PRINT Statement

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

Saved successfully!

Ooh no, something went wrong!