An entry in a multidimensional array is illegally accessed. Indexes for multidimensional arrays must be specified when used. For example, suppose a host variable is declared in ESQL/COBOL as follows:
01 VARA X(10) OCCURS 3 TIMES.
It will return an error if it is used in an SQL statement as follows because you must specify the index into which you want to insert (that is, VARA(1)):
INSERT INTO TAB VALUES ($VARA)