It is not necessary to determine the data type of an output
host variable (that is, a host variable used in an 'INTO host variable'
clause in a FETCH statement).
Output values are assigned to host variables as
follows:
- Character values are assigned without leading and trailing apostrophes.
- Graphic values are assigned without a leading G or apostrophe, without
a trailing apostrophe, and without shift-out and shift-in characters.
- Numeric values are translated into strings.
- Integer values do not retain any leading zeros. Negative values have a
leading minus sign.
- Decimal values retain leading and trailing zeros according to their precision
and scale. Negative values have a leading minus sign. Positive values do not
have a leading plus sign.
- Floating-point values are in scientific notation, with one digit to the
left of the decimal place. The 'E' is in uppercase.