The object in the sqlca variable is a subclass of OSPtr, and its contents are described in the application programmer guides for both DB2 for workstation 2 and DB2 for OS/390. The
printOn: method has been defined for the sqlca to provide a useful description of the sqlca in an inspector window.
In the SQLCA, look for the sqlcode, which contains an integer return code. See
DB2 Messages and Codes for an explanation for the return code. Other useful fields in the sqlca include the
sqlstate, a five-digit code that sometimes offers more information on what happened, and the
sqlerrmc, a field that lists the tokens referred to by the
sqlcode and
sqlstate descriptions.