Configuring Flexible Target Key Transformations with Multiple Sources
Configuring Flexible Target Key Transformations with Multiple Sources
The following example shows how to process changes captured from a VSAM file with two different record types through a single Flexible Target Key transformation and then apply the changes to two DB2 target tables.
This example assumes that the data map for the VSAM data set has been modified to assign the relevant record id value test for both record types. In this example, a data map has been created for records with a REC_TYPE of “A” and for REC_TYPE of “B”. These data maps are called ksdss1.ksdsm1 and ksdss2.ksdsm2, respectively. These data maps have been registered for change data capture.
Assign the BI and CI PowerExchange fields to the extraction map.
Import the two extraction maps as data sources into the PowerCenter Designer by using the Import from PowerExchange dialog box.
Import the relevant data targets. In this example, the two input capture streams will be written to two separate DB2 tables.
The following figure shows the mapping:
The Flexible Target Key transformation contains the columns for both of the PowerExchange sources, and those sources each link to their own target tables. The Flexible Target Key transaction includes input and output groups. An input and output group is added when the transformation is created.
Subsequent input/output groups are required for each source. These are added when you “Edit” the transformation and select the Ports tab and then use the Create Input Group and Output Group buttons.
Before validating the mapping, you must assign the before image and change indicators to the ports.