COBSQ0015 Host variables data types in UNION do not match.

One of the data types for host variables used in a UNION does not match

You cannot select different column types where the result column is the same ordinal position returned. For example, if the first column returned on SQL statement 1 is a numeric column and the first column returned in SQL statement 2 is a character column, that is invalid.