Dataloader/MP Reference Manual

Table Of Contents
DataLoader/MP Reference Manual424148-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 DataLoaders 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 );