GRP7014

The field used as an array index to reference an array element is not defined as numeric with zero decimal positions or is a named constant whose value is greater then the number of elements in the array; the specification is ignored.

Define the index field as numeric with zero decimal positions and insure that it is less than or equal to the number of elements in the array. Compile again.