Status variables

To identify the particular cause of an exception, the database server sets the SQLSTATE and SQLCODE status variables. The SQLSTATE status variable holds a five-character code that is compliant with ANSI and X/Open standards. The SQLCODE status variable holds an integer value that is specific to HCL Informix®.