FORTRAN 77 Language Reference

Record Declaration

The RECORD statement declares variables to be records with a specified structure, or declares arrays to be arrays of such records.

The syntax of a RECORD statement is:

RECORD /structure-name/ record-list [,/structure-name/ record-list] [,/structure-name/ record-list]
structure-name Name of a previously declared structure

record-list

List of variables, arrays, or arrays with dimensioning and index ranges, separated by commas. 

Example: A RECORD that uses the previous STRUCTURE example:


	RECORD /PRODUCT/ CURRENT, PRIOR, NEXT, LINE(10)

Each of the three variables, CURRENT, PRIOR, and NEXT, is a record which has the PRODUCT structure; LINE is an array of 10 such records.

Note the following rules and restrictions for records: