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-26
SQL Error Checking and Statistics Maintenance
operation was successful and, if so, how many rows were affected. This information is
used for the following:
•
To update DataLoader/MP’s internal statistics, which are printed out when
DataLoader/MP terminates
•
To determine the return value of the function, which will be positive if the operation
was successful and negative if the operation was unsuccessful
The three procedures are very similar; the differences between them involve what error
checks are made and what statistics are updated.
DTLDeletedResult
This procedure is designed to be called immediately after executing an embedded SQL
DELETE. It checks the outcome, updates DataLoader/MP’s internal statistics, and
returns a value of 1 if the delete was successful and a value of -1 otherwise.
The syntax for this procedure follows:
DTLInsertedResult
This procedure is designed to be called immediately after executing an embedded SQL
INSERT. It checks the outcome, updates DataLoader/MP’s internal statistics, and
returns a value of 1 if the insert was successful and a value of -1 otherwise.
The syntax for this procedure follows:
DTLUpdatedResult
This procedure is designed to be called immediately after executing an embedded SQL
UPDATE. It checks the outcome, updates DataLoader/MP’s internal statistics, and
returns a value of 1 if the update was successful and a value of -1 otherwise.
The syntax for this procedure follows:
short DTLDeletedResult( short* sqlcode, void* sqlca );
short DTLInsertedResult( short* sqlcode, void* sqlca );
short DTLUpdatedResult( short* sqlcode, void* sqlca );