DataLoader/MX Reference Manual (G06.24+)

Creating a Customized Version of DataLoader/MX
DataLoader/MX Reference Manual525872-002
5-22
User Messages—C
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.
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 procedure does not increment the error count.
DTLWriteToErr
This procedure writes the message to the process error file (the file specified by -E or
stderr if -E is not specified).
void DTLPromptUser( char* Answer, int AnswerSize,
char* Format, ...
void DTLWriteErr( char* Format, ... );
void DTLWriteMsg( char* Format, ... );