Dataloader/MP Reference Manual

Table Of Contents
Creating a Customized Version of DataLoader/MP
DataLoader/MP Reference Manual424148-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
);