DataLoader/MX Reference Manual (H06.03+, J06.03+)
Creating a Customized Version of DataLoader/MX
DataLoader/MX Reference Manual—543544-001
5-22
User Messages—C
passing 0 as the argument. Then it closes the error file (the -E file or stderr). Finally,
it calls exit(3). DTLFatalErr does not return.
The syntax is:
DTLPromptUser
This procedure writes a message to the process stderr and then accepts input from
the user.
The syntax is:
Specify Answersize as the number of bytes available in Answer. Use it to prevent
buffer overflow when accepting the response from the user.
Use Format and the optional parameters following it to construct the message to be
displayed. The message can include embedded \n characters to form a multiline
message.
DTLWriteErr
This procedure writes the message to the process error file (the file specified by -E or
stderr if -E is not specified).
The syntax is:
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 is 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, terminates the process.
DTLWriteMsg
This procedure writes the message to the process error file (the file specified by -E or
stderr if -E is not specified) and to stdout if it is different from stderr.
Note. Having calls to DTLFatalErr from the TERMINATING user exit is dangerous because it
can result in recursive function calls.
void DTLFatalErr( char* Format, ... );
void DTLPromptUser( char* Answer, int AnswerSize,
char* Format, ...
void DTLWriteErr( char* Format, ... );










