FORTRAN Reference Manual
Language Elements
FORTRAN Reference Manual—528615-001
2-22
Referencing a RECORD Field
Referencing a RECORD Field
In an executable statement, you refer to a field within a RECORD by appending a 
circumflex to the end of the RECORD name followed by the name of the field that you 
want to reference. You might have a succession of circumflex/field-name combinations 
if you reference a field of a RECORD that is nested more than one level deep.
record-name
is the name of the outermost RECORD.
field-name
is the name of a field within a RECORD. field-name can be any field within a 
RECORD except a FILLER.
In the following example, the syntax to reference each field of the employee RECORD 
appears to the right of the field:
RECORD employee <-- employee
 FILLER*10 <-- cannot be referenced
 CHARACTER*10 name <-- employee^name
 CHARACTER*10 hired <-- employee^hired
 RECORD salary <-- employee^salary
 REAL pay <-- employee^salary^pay
 INTEGER dept <-- employee^salary^dept
 END RECORD
END RECORD
You must always fully qualify a field name to access it.
You cannot access a FILLER field.
record-name^ field-name [ ^ field-name ]...










