Dataloader/MP Reference Manual
Table Of Contents
- What’s New in This Manual
- About This Manual
- 1 Introduction to DataLoader/MP
- 2 DataLoader/MP Components
- 3 Running DataLoader/MP
- 4 Specifying File-Related Options for DataLoader/MP
- 5 Creating a Customized Version of DataLoader/MP
- User Exits
- User Exit Descriptions
- BUILDKEY
- CHECKARG
- CONVERTIT
- DELETEIT
- DONEWITHTRANSACTION
- EXITSDESCRIPTION
- GETNEXTRECORD
- INITIALIZE1
- INITIALIZE2
- INSERTIT
- INSTRUCTIONS
- MISC1, MISC2, MISC3, and MISC4
- NEWTRANSACTION
- NEXTINDIRECTFILE
- SKIPPING
- STATISTICSTIME
- TERMINATING
- T0330U00_DEFAULTEXITS_C
- T0330U00-DEFAULTEXITS-COBOL
- T7900D41_DEFAULTEXITS_C
- T7900V00-DEFAULTEXITS-COBOL
- UPDATEIT
- Default User Exits
- DataLoader/MP Library
- The MAKE Routine for NM DataLoader/MP
- The MAKE Routine for Nonnative Mode DataLoader/MP
- 6 DataLoader/MP Examples
- 7 Recovery Strategies
- A Error and Warning Messages
- B Processing Flowcharts
- C C-Only Error Functions
- Index

Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual—424148-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.