Examples of ARRAY REFERENCE Declarations

The following example declares REFARRAY, an array reference variable with a lower bound of 3. Because an array class is not specified, REFARRAY is a real array reference variable.

ARRAY REFERENCE REFARRAY[3]

The following example declares DIRREFARRAY, a direct, real array reference variable with a lower bound equal to the value of N. Because this array reference variable is declared to be DIRECT, it can be used in direct I/O operations.

DIRECT ARRAY REFERENCE DIRREFARRAY[N]

The following example declares two complex array reference variables. CREF1 is a one-dimensional array reference variable with a lower bound of 0 (zero), and CREF2 is three-dimensional with lower bounds of 0, 10, and 10.

COMPLEX ARRAY REFERENCE CREF1[0], CREF2[0,10,10]