NetBase SQL Shadowing Handbook

NetBase SQL User Exits
____________________________________________________________
ver A0195 QUEST Software, Inc. 3-5
Export Exit Procedure Calling Conventions
REC REC REC REC REC
export_sql_exit(sqlca,comarea,header,data,upd_data)
sqlca
HP SQL communication area for the DBE. This field can be used
by the user exit to perform dynamic SQL commands on the DBE.
See the SQL manual for the language in which the user exit is
written for the definition of this field.
comarea
An array of various information used to control the exporting of
shadow information. Some fields are reserved and must not be
modified. Format is (C format):
struct {
int action;
int status;
int error1;
int error2;
int export_node;
int import_node;
union {
byte all[16];
struct {
byte first_time;
byte key_col_search;
} id;
} flags;
int user_area[512];
} comarea;
The individual fields are defined as follows:
action Set by user exit procedure to cause various actions by the
exporting process. The valid values are:
0 Process record normally. Record wil be sent to
the specified destinations.
1 Ignore record completely. The record will be
thrown away. This can easily cause
synchronization errors.
2 Disable all subsequent calls to the user exit
facility.
4 Exclude the table. Do not send updates for this
table to the remote machine.
-1 Abort exporting. This is a drastic situation which
can cause later sync errors.