Dataloader/MP Reference Manual

Table Of Contents
Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual424148-003
5-25
SQL Error Checking and Statistics Maintenance
DTLWRITEMSGCOB
This procedure writes the message to the process’ error file (the file specified by -E or
stderr if -E was not specified) and to stdout if it is different from stderr.
If this is the first message written to the process’ 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 was specified, the write to stderr will be skipped, and if stdout is the
same as stderr, the message will not be written anywhere.
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 process’ 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 was specified, the write to stderr will be skipped, and if stdout is the
same as stderr, the message will not be written anywhere.
This procedure does not increment the error count.
The syntax for this procedure follows:
DTLWRITETOUSERCOB
This procedure writes the message to stderr and to stdout (unless stdout is the same
as stderr). If the -Q parameter was specified, the write to stderr will be skipped (and if
stdout is the same as stderr, the message will not be written anywhere).
This procedure does not increment the error count.
The syntax for this procedure follows:
SQL Error Checking and Statistics Maintenance
The following procedures are designed to be called immediately after executing an
embedded SQL INSERT, UPDATE or DELETE statement in user exits. These
procedures check SQLCODE and, potentially, the SQLCA to determine whether the
void DTLWRITEMSGCOB(char* Msg, short* MsgLen);
void DTLWRITETOERRCOB(char* Msg, short* MsgLen );
void DTLWRITETOUSERCOB(char* Msg, short* MsgLen );