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-16
Data Conversion
The value returned by this procedure indicates the outcome of the conversion, where
the following indicate an error condition:
If none of these errors occur, the result is a positive number composed of seven bits
indicating which of the seven possible components were actually present, as follows:
(Most significant)
Bits 0-8 0
Bit 9 1 if input contains YYYY
Bit 10 1 if input contains MM
Bit 11 1 if input contains DD
Bit 12 1 if input contains HH
Bit 13 1 if input contains MM
Bit 14 1 if input contains SS
Bit 15 1 if input contains MSSSSS
(Least significant)
The internal form of a date or time requires 64 bits.
DTLPackedDecimalToASCII
This procedure converts a packed decimal field to an ASCII character string. The
resultant ASCII string will always have a leading sign of + or –.
The syntax for this procedure follows:
The value returned by this procedure indicates the outcome of the conversion. A value
of 1 means that the conversion was successful, and a value of zero (0) means that the
input string was not a valid packed decimal field.
The resultant ASCII character string is always 2 * Len bytes long.
DTLPackedDecimalToLongLong
This procedure converts a packed decimal field to a 64-bit signed integer.
The syntax for this procedure follows:
-1 The input is syntactically incorrect
-2 The input is ambiguous
-3 The day or date does not exist, such as the 30th of February
long DTLPackedDecimalToASCII( char* PD, long Len,
char* ASCII );
short DTLPackedDecimalToLongLong(
char* PD,
long Len,
long long* Result
);