Dataloader/MP Reference Manual

Table Of Contents
Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual424148-003
5-24
User Messages—COBOL
The syntax for this procedure follows:
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 for this procedure follows:
DTLPROMPTUSERCOB
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.
The MsgLen characters in Msg are the message displayed on the process’ home
terminal.
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 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, it terminates the process.
The syntax for this procedure follows:
short DTLCONTINUECOB(char* Question, short* QuestionLen );
void DTLFATALERRCOB( char* Msg, short* MsgLen );
void DTLPROMPTUSERCOB(char* Answer, int* AnswerSize,
int*AnswerLen, char* Msg, int* MsgLen);
void DTLWRITEERRCOB(char* Msg, short* MsgLen );