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>Language</strong> <strong>Reference</strong><br />

Example:<br />

&PERSON<br />

NAME = ’John Doe’<br />

STREET = ’22 Main St.’ CITY = ’Smallville’<br />

STATE = ’Texas’ COUNTRY = ’U.S.A.’<br />

ZIP_CODE = ’78910-1203’<br />

MARKS = 73, 82, 3*78, 89, 2*93, 91, 88<br />

AGE = 23<br />

&END<br />

The form of the data items in an output record is suitable for input using a namelist-directed READ<br />

statement.<br />

1. Output records are written using the ampersand character (&), not the dollar sign ($), although<br />

the dollar sign is accepted as an alternative during input. That is, the output data is preceded by<br />

"&name" and is followed by "&END".<br />

2. All variable and array names specified in the NAMELIST list and their values are written out,<br />

each according to its type.<br />

3. Character data is enclosed in apostrophes.<br />

4. The fields for the data are made large enough to contain all the significant digits.<br />

5. The values of a complete array are written out in columns.<br />

For more information, see the chapters entitled "Format" on page 225 and "Input/Output" on page 215.<br />

110 NAMELIST Statement

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

Saved successfully!

Ooh no, something went wrong!