NetBase SQL Shadowing Handbook

User Exits NetBase SQL
____________________________________________________________
3-6 QUEST Software, Inc. ver A0195
status Set by user exit procedure to send a message to the console.
If a positive value is set, this message in the catalog file
NBEXPSQL.CAT, set 5, will be sent to the console.
error1 Set by user exit procedure. If status is non-zero, these values
will be error2 inserted in the message sent to the console.
export_node Set by calling procedure to indicate the node number from
which transactions are being exported. This is the local node.
import_node Set by calling procedure to indicate the node number to which
transactions are being sent. This is the remote node. If the
node is zero, it is assumed to be the pseudo-node for
capturing transactions from a DBE without transferring them
elsewhere.
first_time This flag is set by the calling process. It is TRUE only the first
time that the user exit is called.
key_col_search This flag is set by the user exit. It tells the export process to
set the KEY_COL_SRCH_OK flag when the transaction is
applied.
user_area This is a comarea provided to the USEREXIT for its own use.
header Contains all non-data information about the original update. This field
contains the following:
struct {
char DBEname[26];
char owner_name[20];
char table_name[20];
char user_name[20];
char commit_time[24];
short record_type;
short num_columns;
short upd_columns;
struct {
short column_type;
short column_length;
} column_array[256];
struct {
short column_num;
short column_type;
short column_length;
} update_array[256];
}