variable should not be defined with an OCCURS clause.
A host variable is defined as an array using an OCCURS clause.
The preprocessor does not allow host variables to be defined this way. Edit your program to remove the OCCURS clause and then
Important: This error can sometimes be generated incorrectly when an indicator variable array is specified with a non-array host variable.
If this happens, instead of removing the OCCURS clause, recompile using the SQL(NOARRAYCHECK) directive to prevent the error
from being generated.