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

DataLoader/MP Reference Manual—424148-003
C-1
C C-Only Error Functions
This appendix describes C-only SQL error checking functions. These functions work
for C programs, but do not work for COBOL programs.
They are retained for compatibility with earlier versions of DataLoad, but you should
not use them for new customizations. Instead, use their replacements
(DTLDeletedResult, DTLInsertedResult, and DTLUpdatedResult). See SQL Error
Checking and Statistics Maintenance on page 5-25 for descriptions of those functions.
DTLWasDeleted
This procedure is designed to be called immediately after executing an embedded SQL
delete. It checks the outcome, updates DataLoader’s internal statistics, and returns a
value of 1 if the delete was successful and a value of -1 otherwise. This procedure has
been replaced by DTLDeletedResult.
The syntax for this procedure follows:
DTLWasInserted
This procedure is designed to be called immediately after executing an embedded SQL
insert. It checks the outcome, updates DataLoader’s internal statistics, and returns a
value of 1 if the insert was successful and a value of -1 otherwise. This procedure has
been replaced by DTLInsertedResult.
The syntax for this procedure follows:
DTLWasUpdated
This procedure is designed to be called immediately after executing an embedded SQL
update. It checks the outcome, updates DataLoader’s internal statistics, and returns a
value of 1 if the update was successful and a value of -1 otherwise. This procedure has
been replaced by DTLUpdatedResult.
The syntax for this procedure follows:
short DTLWasDeleted( void );
short DTLWasInserted( void );
short DTLWasUpdated( void );