Was this helpful?
Structure scb_error
A structure named scb_error of the type II_ERR_STRUCT is inside the Session Control Block. Scb_error must be filled in whenever the function returns an error.
The fields of the scb_error structure are as follows:
er_errcode
Contains the error code that identifies the error to the calling facility.
er_class
Contains the value II_EXTERNAL_ERROR (3).
er_usererr
Contains the user error code. This is the same value as that in er_errcode.
er_sqlstate_err
Must contain a valid SQLSTATE error code. For details about SQLSTATE, see the SQL Reference Guide.
er_ebuflen
Sent by the DBMS Server to specify the size of the buffer pointed to by er_errmsgp.
er_emsglen
Sent back to the DBMS Server to indicate the length of the formatted error message that was placed in the buffer to which er_errmsgp points.
er_errmsgp
Contains a pointer to a buffer where a formatted message can be placed. If this pointer is NULL (0), then no message can be provided.
Last modified date: 08/28/2024