HiRDB Dataextractor Version 8 Description, User's Guide and Operator's Guide

[Contents][Index][Back][Next]

3.1.3 Converting the data type of extracted data

This section discusses the data types that can be converted during the import operation and compared to selected rows to be extracted.

Tables 3-7 and 3-8 list the data types that HiRDB Dataextractor can convert and compare. When it imports data, HiRDB Dataextractor compares a column to be extracted with the column to be imported and executes data type conversion if they constitute any of the combinations listed in Tables 3-7 and 3-8. When it selects a row to be extracted, HiRDB Dataextractor compares the specified data if the conditions in the table expression specification file match the appropriate combination of data types listed in Tables 3-7 and 3-8.

Notes

Y: Can be converted and compared.

--: Cannot be converted or compared.

YEAR: INTERVAL YEAR TO DAY

HOUR: INTERVAL HOUR TO SECOND

1 Comparison with and conversion to date interval data is supported in the following cases:

2 Comparison with date data is supported in the following cases:

3 Comparison with date data and conversion to character data is supported in the following cases:

4 Comparison with date interval data and conversion to decimal data is supported in the following cases:

5 Comparison between two date interval data items takes place in the order of year, month, and date.

6 Comparison with and conversion to time interval data is supported in the following cases:

7 Comparison with time data is supported in the following cases:

8 Comparison with time data and conversion to character data is supported in the following cases:

9 Comparison with time interval data and conversion to decimal data is supported in the following cases:

10 Comparison between two time interval data items takes place in the order of hour, minute, and second.

11 If data on the source system is shorter than the data on the target system, HiRDB Dataextractor pads the data with trailing spaces.

12 You should note the following when you execute with this combination:

13 You should note the following when you execute with this combination:

14 Data truncation occurs in the following cases:
If a nonzero value is specified in the XTERRLEVEL environment variable, processing depends on the specified value:
  • Character string, mixed character string, or national character string data:
    Data length on the source system > data length on the target system
  • Decimal data:
    Length of integer part on the source system > length of the integer part on the target system
    or
    Length of decimal part on the source system > length of decimal part on the target system

15 Data conversion and comparison is not supported if the data on the source system is longer than the data on the target system. However, if the XTLOBBUFSIZE environment variable is specified, HiRDB Dataextractor processes the data according to the specification of the XTERRLEVEL environment variable.

16 Conversion from time stamp data to character data (CHAR(n), VARCHAR(n)) is supported in the following cases:
  • The time stamp data does not include decimal places for seconds and the length of the character data is at least 19 bytes.
  • The time stamp data has 2 decimal places for seconds and the length of the character data is at least 22 bytes.
  • The time stamp data has 4 decimal places for seconds and the length of the character data is at least 24 bytes.
  • The time stamp data has 6 decimal places for seconds and the length of the character data is at least 26 bytes.

17 Conversion from character data (CHAR(n), VARCHAR(n)) to time stamp data is supported in the following cases:
  • CHARACTER or VARCHAR is the time stamp data.
  • The TIMESTAMP_FORMAT scalar function is specified in the column name specification file. Decimal places for seconds are truncated if the target is too short and are padded with 0x00 if the target is too long.

18 If the decimal places for seconds do not match, they are truncated if the target is too short and are padded with 0x00 if the target is too long.

19 Conversion is supported in the following cases:
  • Character or mixed character data is converted to BINARY data.
  • Hexadecimal literals are specified in the column name specification file and imported to BINARY data.

20 Types other than the BLOB type for large object data can be used.