FORTRAN Reference Manual
Statements
FORTRAN Reference Manual—528615-001
7-94
RECORD Statement
RECORD Statement
The RECORD statement defines a data structure, which can include data of different 
types.
record-name
is a symbolic name or array declarator
field-declaration
is either a data type declaration, an EQUIVALENCE statement, a record 
declaration, or a FILLER * nnn where nnn is an unsigned integer constant in the 
range of 1 through 255.
lower
is an integer expression that specifies the lower bound of a one-dimensional array.
upper
is an integer expression that specifies the upper bound of a one-dimensional array.
Considerations
•
Observe the following restrictions in using the RECORD statement:
°
Start a RECORD declaration with the RECORD statement and end it with the 
END RECORD statement.
°
You can nest RECORD declarations, up to 15 deep.
°
You can use an array in a RECORD or sub-RECORD, but the array can have 
only one dimension.
°
You can declare a RECORD’s dimensions using a COMMON, DIMENSION, or 
RECORD statement; but you can declare the RECORD’s dimensions only 
once in a program unit.
°
You can equivalence RECORDs only to other RECORDs.
°
You cannot use a DATA statement to initialize RECORDs.
°
You cannot declare RECORDs in a BLOCK DATA subprogram.
•
For additional information about the RECORD statement, see the Records on 
page 2-20.
RECORD record-name [ ( [ lower:] upper) ]
 [ field-declaration ]...
END RECORD










