-311 THE LENGTH OF INPUT HOST VARIABLE NUMBER position-number IS NEGATIVE OR GREATER THAN THE MAXIMUM
Explanation
When evaluated, the length specification for input host string variable, whose entry in the SQLDA is indicated by position-number, was negative or greater than the maximum.
System action
The statement cannot be processed.
Programmer response
Correct the program to ensure that the lengths of all host string variables are not negative or that they are not greater than the maximum allowed length.
SQLSTATE
22501