Contents Index Using indicator variables to handle NULL Using indicator values for conversion errors

ASA Programming Guide
  Embedded SQL Programming
    Using host variables
      Indicator variables

Using indicator variables for truncated values

Indicator variables indicate whether any fetched values were truncated to fit into a host variable. This enables applications to handle truncation appropriately.

If a value is truncated on fetching, the indicator variable is set to a positive value, containing the actual length of the database value before truncation. If the length of the value is greater than 32 767, then the indicator variable contains 32 767.


Contents Index Using indicator variables to handle NULL Using indicator values for conversion errors