ARRAY

Declares one-dimensional array variables.

Syntax

ARRAY arrayVariableName [dimName] = { constList};
ParameterDescription

arrayVariableName

Comma-delimited list of one or more array variable names.

dimName

Dimension whose size determines the size of the array variable. Surround dimName with brackets [ ].

constList

Optional list of data values used to initialize the array variable(s). If no initialization is performed, the array variables are set to #MISSING. The order of the values corresponds to the order of the members in the dimension used to define the array.

Notes

Example

ARRAY discount[Scenario];

yields an array of 4 entries, with the values 1 through 4 entered in those four entries.

ARRAY discount[Scenario] = {1, 2, 3, 4};
ARRAY discount[Scenario], tmpProduct[Product];

yields two arrays:

  1. discount, corresponding to Scenario and containing four members

  2. tmpProduct, corresponding to Product and containing nine members

See Also

  • VAR