SQLERRM character string
SQLERRM can store a character string of up to 72 bytes. The SQLERRM character string contains identifiers, such as a table names, that are placed in the error message. For some networked applications, it contains an error message that the networking software generates.
If an INSERT operation fails because a constraint is violated,
the name of the constraint that failed is written to SQLERRM.
Tip: If an error string is longer than 72 bytes,
the overflow is silently discarded. In some contexts, this can result
in the loss of information about runtime errors.