The SQLCODEs are associated with the SQL messages (ARI0500I - ARI0513E). The SQLCODEs provide specific information about the condition of the system. For more information, refer to the descriptions of the SQL messages issued with the SQLCODE.
An SQLSTATE field as well as an SQLCODE, is returned in the SQLCA. Each SQLSTATE corresponds to an SQLCODE. See Chapter 20, SQLSTATEs for more information.