DataLoader/MX Reference Manual (G06.24+)
Creating a Customized Version of DataLoader/MX
DataLoader/MX Reference Manual—525872-002
5-25
SQL Error Checking and Statistics Maintenance
If this is the first message written to the error file, a message is written to stderr (and
to stdout if it is different from stderr) to indicate that errors are occurring. If the -Q
argument was specified, the write to stderr is skipped, and if stdout is the same as
stderr, the message is not written.
This procedure does not increment the error count.
The syntax for this procedure follows:
DTLWRITETOERRCOB
This procedure writes the message to the process error file (the file specified by -E or
stderr if -E was not specified).
If this is the first message written to the error file, a message is written to stderr (and
to stdout if it is different from stderr) to announce that errors are occurring. If the -
Q argument is specified, the write to stderr is skipped, and if stdout is the same as
stderr, the message is not written.
This procedure does not increment the error count.
The syntax is:
DTLWRITETOUSERCOB
This procedure writes the message to stderr and to stdout (unless stdout is the
same as stderr). If the -Q parameter is specified, the write to stderr is skipped, and
if stdout is the same as stderr, the message is not be written.
This procedure does not increment the error count.
The syntax is:
SQL Error Checking and Statistics Maintenance
The next procedures are designed to be called immediately after you execute an
embedded SQL INSERT, UPDATE, or DELETE statement in user exits. These
procedures check SQLSTATE to determine whether the operation was successful and,
if so, how many rows were affected. This information is used to:
•
Update DataLoader/MX internal statistics, which are printed out when
DataLoader/MX terminates
void DTLWRITEMSGCOB(char* Msg, short* MsgLen);
void DTLWRITETOERRCOB(char* Msg, short* MsgLen );
void DTLWRITETOUSERCOB(char* Msg, short* MsgLen );