SQLCA structure

A SQLCA structure is used in conjunction with ct_diag to retrieve Client-Library and server error and informational messages.

A SQLCA structure is defined as follows:

/*
 ** SQLCA
 ** The SQL Communications Area structure. 
 */
 
 typedef struct _sqlca
 {
     char    sqlcaid[8];
     long    sqlcabc;
     long    sqlcode;
 
     struct
     {
         long    sqlerrml;
         char    sqlerrmc[256];
     } sqlerrm;
 
     char    sqlerrp[8];
     long    sqlerrd[6];
     char    sqlwarn[8];
     char    sqlext[8];
 
 } SQLCA;

where: