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-38
Miscellaneous Utility Procedures
Miscellaneous Utility Procedures
The following procedures provide additional services.
DTLHash1UnsignedLong
This procedure generates a pseudo-random 32-bit integer from the key passed.
The syntax for this procedure follows:
DTLStrcmpi
This procedure makes a case-insensitive comparison between two strings. The strings
are standard null-terminated C strings. If Str1 is less than Str2, DTLStrcmpi returns a
negative value; if they are equal, DTLStrcmpi returns 0; and if Str1 is greater than
Str1, DTLStrcmpi returns a positive value.
The syntax for this procedure follows:
DTLStrdup
This procedure creates a duplicate of a standard, null-terminated C string. It is the
caller’s responsibility to free this duplicate string when it is no longer needed.
The syntax for this procedure follows:
DTLStrlastchr
This procedure returns a pointer to the last occurrence of a given character in a
standard null-terminated C string. If the character never appears in the string, NULL is
returned.
The syntax for this procedure follows:
DTLStrncat
This procedure copies Str2Len characters from Str2 to position Str1Len and after
in Str1, first using realloc to ensure Str1 is big enough to hold the additional
characters. The procedure returns the pointer to the combined string, which might not
be the same as Str1 if realloc had to move the string.
unsigned long DTLHash1UnsignedLong( void* Key, long Len );
short DTLStrcmpi( char* Str1, char* Str2 );
char* DTLStrdup( char* String );
char* DTLStrlastchr( char* String, char Char );