DSNH5011I HOST VARIABLE ARRAY host-variable-array IS EITHER NOT DEFINED OR IS NOT USABLE

Explanation

Host-variable-array host-variable-array was specified in a multiple-row FETCH or multiple-row INSERT statement. The host-variable array is not defined or is not usable for one of the following reasons:
  • The host variable is not a valid host-variable array.
  • The host variable is not a dimensioned array.
  • The host-variable array has more than 1 dimension.
  • The host-variable array defines a structure that does not conform to the rules for defining a host-variable array.
  • The dimension of the host-variable array used for indicators is not equal to the dimension of the main host-variable array.

System action

The statement cannot be processed.

Programmer response

Correct any of the following and precompile the program again. Ensure that:
  • the dimension of the indicator variable array is equal to the dimension of the main host-variable array.
  • the host-variable array is a single-dimensional array.
  • the host-variable array or host-indicator-variable array do not contain structures that are not permissible. The only structures that may be defined in a host-variable array are those that are used to define variable length string host variables.