Dataloader/MP Reference Manual

Table Of Contents
Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual424148-003
5-22
User Messages—C
DTLPromptUser
This procedure writes a message to the process’ home terminal, then accepts input
from the user.
Answersize should be specified as the number of bytes available in Answer. It is
used to prevent buffer overflow when accepting the response from the user.
Format and the optional parameters following it are used to construct the message to
be displayed. The message may include embedded \n characters to form a multi-line
message.
The syntax for this procedure follows:
DTLWriteErr
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 function also increments the error count, and, if the error limit specified by the -L
parameter is reached, terminates the process.
The syntax for this procedure follows:
DTLWriteMsg
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:
void DTLPromptUser( char* Answer, int AnswerSize,
char* Format, ...
void DTLWriteErr( char* Format, ... );
void DTLWriteMsg( char* Format, ... );