RECORD Statement (Nonexecutable) [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation
HP FORTRAN 77/iX Reference
RECORD Statement (Nonexecutable)
The RECORD statement declares a record variable that has the form
previously declared in a STRUCTURE statement.
-----------------------------------------------------------------------------------------------
| | | |
| Item | Description/Default | Restrictions |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| struc_name | Name of a previously declared | Cannot be the name of a structure |
| | structure. | currently being declared. |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| variable_name | Variable name. | None. |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| array_name | Array name. | None. |
| | | |
-----------------------------------------------------------------------------------------------
| | | |
| array_declarator | Array declaration. | None. |
| | | |
-----------------------------------------------------------------------------------------------
Semantics
Record names can be used in COMMON, DIMENSION, and SAVE statements. They
can not be used in DATA, EQUIVALENCE, and NAMELIST statements.
Record field values are initially undefined, but can be initialized in
the structure declaration.
Refer to "STRUCTURE Statement (Nonexecutable)" for more information
on structures and their use with records.
Examples Notes
---------------------------------------------------------------------------------------
RECORD/student/rec1,math_student(10) rec1 is a record variable that has the form
declared for the student structure.
math_student is an array variable that has
ten record elements in the form declared
for the student structure.
MPE/iX 5.0 Documentation