X395: Value for data type Type is out of range for host variable PositionNumber.

The XDB Server cannot return the requested value because the returned value is larger than the host variable at PositionNumber in the output SQLDA (to which the value was to be written) can accept.
Restriction: This topic applies to Windows environments only.

Check your source code to ensure that it specifies the correct host variable for this result and that the data type of this variable is large enough to hold the value produced by the database.