Using the CLASS_ORIGIN Keyword
Use the CLASS_ORIGIN keyword to retrieve the class portion of the RETURNED_SQLSTATE value. If the ISO standard for SQL defines the class, the value of CLASS_ORIGIN is equal to ISO 9075. Otherwise, the value returned by CLASS_ORIGIN is defined by HCL OneDB™ and cannot be ISO 9075. The terms ANSI SQL and ISO SQL are synonymous.