Dataloader/MP Reference Manual

Table Of Contents
Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual424148-003
5-13
Default User Exits
For this reason, all UPDATEIT user exits should follow this format:
Default User Exits
DataLoader/MP includes a set of default user exits, listed in Table 5-3.
void UPDATEIT( char*Rec, long* RecLen, short* Status )
{
...
EXEC SQL update ..... ;
*Status = DTLUpdatedResult( &sqlcode, &sqlca );
}
Table 5-3. Default User Exits (page1of2)
User Exit Description of Default Behavior
BUILDKEY Returns the record itself (up to the first 255 bytes) as the key.
CHECKARG Returns a value indicating that it does not recognize the
argument passed. Running the default DataLoader/MP
specifying an argument that DataLoader/MP itself does not
recognize causes it to terminate with a brief description of
the legal parameters.
CONVERTIT Terminates with a message that it has been called
unexpectedly.
DELETEIT Terminates with a message that it has been called
unexpectedly.
DONEWITHTRANSACTION Does nothing.
EXITSDESCRIPTION Returns the string “Default_Exits_C” or “DEFAULTEXITS-
COBOL.” The value returned by EXITSDESCRIPTION is
printed in the DataLoader/MP startup banner.
GETNEXTRECORD Returns an end-of-file indication. If the default
DataLoader/MP is run without an -I parameter specified, it
will call GETNEXTRECORD and immediately terminate with
no records processed.
INITIALIZE1 Does nothing. Returns a value indicating that it executed
correctly.
INITIALIZE2 Does nothing. Returns a value indicating that it executed
correctly.
INSERTIT Terminates with a message that it has been called
unexpectedly.
INSTRUCTIONS Does nothing.
MISC1, MISC2, MISC3,
MISC4
Terminates with a message that it has been called
unexpectedly.
NEWTRANSACTION Does nothing.