Field | Description |
sqlcaid | An eight-byte character string containing the constant SQLCA. This field serves mainly as an eye-catcher for easy memory dump interpretation. |
sqlcabc | A four-byte integer variable containing the length in bytes of the SQLCA. It normally contains the value 136. |
sqlcode | A four-byte integer variable containing the status of the executed SQL command. The standard defines four categories of results: zero - The command has been successfully executed. (There may have been warning messages). negative - An error has occurred. The negative number indicates the nature of the error. Adabas SQL Gateway Embedded SQL allows the installation to define its own error values. Thus, compatibility with different SQL DBMSs can be achieved. (The ANSI/ISO standard does not specify which negative values should be used with a particular error status). When a negative code is returned, the SQLERROR condition of the WHENEVER statement is activated. positive - The command executed successfully, but an exceptional condition occurred. +100 - This value is returned to indicate that the command was successfully executed but processed no rows. It is used in conjunction with the following commands: DELETE, FETCH, INSERT, SELECT, UPDATE. |
sqlerrm | A variable containing two fields holding the actual values to replace the variables contained in error messages. sqlerrml - A two-byte integer field. This field is currently not used. sqlerrmc - A character string of variable length which may not exceed 70 characters. This field is currently not used. The string contains one or more actual values for the variables of the associated error messages. As many error messages contain no text variables, this field is not always filled. Each value in the string is terminated by one byte containing the hex value FF. |
sqlerrp | An eight-byte character variable. This field is currently not used. |
sqlerrd1 - 6 | A group of six integer fields, each four bytes in length. sqlerrd1 - Currently not used. sqlerrd2 - Currently not used. sqlerrd3 - Specifies how many rows were processed by the SQL statement. sqlerrd4 - Currently not used. sqlerrd5 - Currently not used. sqlerrd6 - Currently not used. |
sqlwarn0 - 7 | A group of eight character variables, each one byte in length. The default content is blank. This set of fields is currently not used. |
sqlext | An eight-byte character string. This field is currently not used. |