NetBase SQL Shadowing Handbook

User Exits NetBase SQL
____________________________________________________________
3-28 QUEST Software, Inc. ver A0195
*haveVAR = TRUE;
}
else
if (*haveVAR && lengthUsed == 0) {
strcpy (msg, "CANNOT DECODE DATA, NO COLUMN INFO AFTER VARCHAR");
PRINT (msg, -(strlen(msg)), 0);
return FALSE;
}
else
if (lengthUsed > 0 &&
lengthUsed != clen) {
strcpy (msg, "CANNOT DECODE DATA, COLUMN LENGTHS DO NOT MATCH");
PRINT (msg, -(strlen(msg)), 0);
return FALSE;
}
uexit_print_data (data+*offset, columnName, ctype,
clen, precision, scale);
*offset += clen;
return TRUE;
} /* end of uexit_process_data */
/* USEREXITS */
/* export_sql_exit */
/* */
/* If the UPDATE or INSERT is for the STATUS table, get the */
/* record and validate. If the record is valid, create a file */
/* using the SOURCE column of the status record in the name. */
/* */
void export_sql_exit (sqlca_type sqlca, comarea_rec *comarea,
header_rec *header, char *data, char *upd_data)
{
EXEC SQL BEGIN DECLARE SECTION;
struct {
char status_name [20];
char source [4];
char source_desc [16];
char business_date [16];
char start_time [16];
char finish_time [16];
} log_data;
char source_desc [17];
char business_date [11];
char start_time [24];
char finish_time [24];
char log_status_name [20];
char log_source [4];
EXEC SQL END DECLARE SECTION;
int log_offset, upd_offset;
int unum, i, l;