Previous Topic: Scalar VariableNext Topic: Field Name Qualification


Array

An array is a scalar variable that occurs multiple times, in contiguous locations, within the GSA or the input record area. Arrays can be defined to the Reporting Facility only by the DEFINE command.

The same restrictions and attribute options apply to arrays as to scalar variables. However, when an array element is referenced in a procedural statement, you must supply an INDEX value to indicate which occurrence of the array is being referenced. Code an array element reference in the following format:

►►─ fieldname(indexval) ──────────────────────────────────────────────────────►◄
fieldname

Specifies the symbolic name assigned to the array.

indexval

Specifies the element within the array that is to be referenced. You can code it as either:

Note the following: