Example 1. Using ICUALIAS to Remap CCSID 37 to Thai 878
Example 1. Using ICUALIAS to Remap CCSID 37 to Thai 878
In this example, you need to consolidate data from different locations into DB2 for i5/OS tables. The CCSID is set to 37, but the data is in the EBCDIC Thai code page at internal code page number 222, which uses ICU converter ibm-838_P100-1995.
By adding ICUALIAS statements to the DBMOVER configuration file, we can remap CCSID 37 to the Thai code page for all DB2 tables accessed with the associated PowerExchange Listener.
Use the following steps to remap the data and extract it to a flat file in UTF8:
Create a separate PowerExchange Listener for each problem code page. Make sure that each PowerExchange Listener has a different i5/OS port and DBMOVER configuration file.
Include the following statements in the DBMOVER configuration file for the PowerExchange Listener that is used to access the Thai data:
These statements, respectively, accomplish the following results:
Remove the default mapping between CCSID 37 and the Internal code page 3 with non-ICU converter name IBM-037
Remove the default mapping between CCSID 37 and the internal code page 189 with ICU converter name ibm-37_P100-1995
Add a mapping between CCSID 37 and the internal code page number 222 with ICU converter name ibm-838_P100-1995
From the PowerExchange Navigator, run the DTLDESCRIBE COLUMNS command to verify that the data is described using the required internal code page number.
From the PowerExchange Navigator, run a database row test to view the data.
Create and run a PowerCenter workflow to copy the data to a flat file in UTF-8. Then view the flat file to verify that no characters were lost.