X393: Output host variable PositionNumber is incompatible with the query result.

The XDB Server is not able to return the result of a CALL, FETCH, or SELECT statement because the data type of the variable at PositionNumber in the output SQLDA (to which the result was to be written) does not match the data type of the result.
Restriction: This topic applies to Windows environments only.

Check your source code to ensure that it is writing its results to the correct output variable and that the data type of that variable is compatible with the expected result.