L311: Length of input host variable number number is negative or greater than the max.

See the section Error SQLCODES in your IBM Database Messages and Codes manual, message -311, for information.
Restriction: This topic applies to Windows environments only.