Professional Documents
Culture Documents
Step by step guide on how to add CDC/IIDR subscription mappings into Information
Governance Catalog
Tested on IIDR 11.3.3 and InfoServer 11.5, 11.3 FP1 on Linux. Tested on Windows with
modifications required to Path and File locations.
Requires the use of DataStage to run jobs that will create the Extension Mappings
This guide currently works with an IIDR setup of database source and target. Need to
investigate further for flat files and JMS targets.
Supports regular column mapping, Derived Columns, Derived Expressions, Default Value,
Journal Control columns
Link to sample subscription xml export and database tables in isx format in Appendix A.
Latest version of this slide and other assets found on this link:
https://ibm.box.com/s/09yuentvrems5shuzqwf382a21znez3m
This step is optional since the Heirarchical stage of imported DataStage job will
contain the XML schema.
I created a schema folder called CDC then Imported the XSD using Import New
Resource.
This job will parse XML and get all the Derived Columns with their expressions.
Needs 2 parameters, full path to subscription XML, target path which is the
main folder you created in Step 4.
This job will take the XML and create a temporary mapping file (used as input to next job) and a dsjob
script.
Will lookup for any Derived Columns output from previous job.
Uses additional parameter for CDC Subscription Name and DataStage project name.
Second output is a script called dsjob_script.sh that will automate the calling of
the 3rd job C01_Restructure.
For first time run, you may need to make the script executable using similar
command “chmod +x /opt/IBM/home/dsadm/demo/CDC/dsjob_script.sh”
Run the dsjob_script.sh as shown in screen print below. Your path may vary.
The C01_Restruture job will take the temporary mapping files in the temp folder
and create the Extension Mapping ready file in the mappings folder.
Import the source and target database metadata information into IGC.
You can use either InfoSphere Metadata Asset Manager (IMAM) or the Import
Table Definition – Start Connector Import Wizard in DataStage.
Take note of the Host, Database and Schema information. You will need this
info during the import of the extension mapping.
Open IGC from a browser. If using a client machine, you may need to FTP the
Extension Mappings from server into your client machine.
Click Import
Import message.
Success!
When you hover to column you will see the derived expressions, default
values, journal control columns.
Regular Mapping
Derived Expression
The IIDR output XSD used in this guide was for 11.3.3 version.
The extension mapping format has not changed, so the steps outlined should
still work previous IS versions.
If you want to test this yourself, you can download an export of a sample
subscription as well as the an isx archive format of the metadata assets from
this link:
https://ibm.box.com/s/09yuentvrems5shuzqwf382a21znez3m
Added a job sequence to automate the steps. I suggest running the jobs at
least once as instructed, to ensure that the jobs run on their own.
The last stage in the Sequence job calls an external script that calls the
dsjob_script.sh
You may have to modify the script to match the DSHOME/bin folder and path
location.