DataLoader/MX Reference Manual (H06.03+, J06.03+)
Creating a Customized Version of DataLoader/MX
DataLoader/MX Reference Manual—543544-001
5-25
User Messages—COBOL
The user response is placed into Answer. The number of characters accepted is
placed into AnswerLen.
DTLWRITEERRCOB
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 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 function also increments the error count and, if the error limit specified by the -L
parameter is reached, it terminates the process.
The syntax is:
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 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:
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.
void DTLPROMPTUSERCOB(char* Answer, int* AnswerSize,
int*AnswerLen, char* Msg, int* MsgLen);
void DTLWRITEERRCOB(char* Msg, short* MsgLen );
void DTLWRITEMSGCOB(char* Msg, short* MsgLen);










