DataLoader/MX Reference Manual (G06.24+)

Creating a Customized Version of DataLoader/MX
DataLoader/MX Reference Manual525872-002
5-24
User Messages—COBOL
DTLFATALERRCOB
This procedure writes the message to stderr and to stdout (unless stdout is the
same as stderr). It ignores -Q so that the message appears at least on stderr.
After the message has been written, DTLFATALERRCOB calls the TERMINATING
user exit, passing 0 as the argument. Then it closes the error file (the -E file or
stderr). Finally, it stops the process with completion code 3. DTLFATALERRCOB
does not return.
The syntax is:
DTLPROMPTUSERCOB
This procedure writes a message to the process stderr and then accepts input from
the user.
Specify Answersize should be specified as the number of bytes available in Answer.
The MsgLen characters in Msg are the message displayed on the process stderr.
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.
void DTLFATALERRCOB( char* Msg, short* MsgLen );
void DTLPROMPTUSERCOB(char* Answer, int* AnswerSize,
int*AnswerLen, char* Msg, int* MsgLen);
void DTLWRITEERRCOB(char* Msg, short* MsgLen );