A SQLCODE structure is used in conjunction with ct_diag to retrieve Client-Library and server error and informational message codes.
An application must declare a SQLCODE structure as a long integer.
Client-Library always sets SQLCODE and the sqlcode field of the SQLCA structure identically.