2.2.5 Records

A record is an aggregate entity containing one or more elements. (Record elements are also called fields or components.) You can use records when you need to declare and operate on multi- field data structures in your programs.

On VAX systems, you can also access records in the VAX common data dictionary (CDD) to use in your programs.


Note
Do not confuse a Fortran record with an OpenVMS RMS I/O system record or a Tru64 UNIX Fortran I/O system record. Fortran records are named data entities with one or more fields that you create in your program.

A record is similar to an array because they both contain one or more elements. However, a record differs from an array in the following respects:

Structure Declarations

A structure declaration (also called a structure declaration block>cparen> is a named group of statements that define the form of a record. To establish a structure declaration in memory, the name of the structure must be specified in a RECORD statement.

A structure declaration includes one or more of the following items:

For More Information:


Previous Page Next Page Table of Contents