Table of Contents

Search

  1. Preface
  2. PowerExchange Navigator Introduction
  3. Data Maps
  4. Data Maps for Specific Data Sources
  5. Copybooks
  6. Registration Groups and Capture Registrations
  7. Extraction Groups and Extraction Maps
  8. Personal Metadata
  9. Database Row Test
  10. PowerExchange Navigator Examples
  11. Appendix A: PowerExchange Functions for User-Defined Fields
  12. Appendix B: User Access Method Programs
  13. Appendix C: Application Groups and Applications
  14. Appendix D: Data Map Properties
  15. Appendix E: Record, Field, and Table Properties
  16. Appendix F: DTL__CAPXTIMESTAMP Time Stamps
  17. Appendix G: Trace for Creating a Memory Map When Importing a COBOL Copybook

Navigator User Guide

Navigator User Guide

Adding or Removing Change Indicator and Before Image Columns for a Data Column

Adding or Removing Change Indicator and Before Image Columns for a Data Column

You can edit an extraction map for a source table to add or remove change-indicator (CI) and before-image (BI) columns for one or more data columns.
In an extraction map, the CI column name is DTL__CI_
data_column_name
and the BI column name is DTL__BI_
data_column_name
.
A DTL__CI column indicates whether an UPDATE operation changed data in the associated column. You can use a CI column in an SQL WHERE clause filter for a CDC session to filter the change records that PWXPC passes to PowerCenter for processing. The DTL__CI column contains one of the following values:
  • Y
    . An UPDATE changed the column data.
  • N
    . An UPDATE did not change the column data.
  • Null
    . An INSERT or DELETE operation on the column occurred.
A DTL__BI column contains the BI for an UPDATE operation on the associated column. If the source database allows changes to primary keys, you can use the BI fields with a PowerCenter Flexible Target Key Custom transformation to trigger updates to primary keys on the target when source keys change.
If you use the PowerExchange Logger for Linux, UNIX, and Windows and specify AI for the CAPT_IMAGE parameter in the pwxccl.cfg file, do not add change-indicator or before-image columns. The AI setting causes the PowerExchange Logger to store only after images. Consequently, PowerExchange cannot provide BIs to PWXPC for downstream processing in PowerCenter. Also, if you enter BA for the CAPT_IMAGE parameter, the PowerExchange Logger stores both before images and after images for UPDATEs. Any INSERT or DELETE operations on the source result in null values in the change-indicator columns.
  1. Open the extraction group.
  2. Right-click the extraction map and click
    Amend Change Indicator/Before Image Extensions
    .
    The
    Extract Definition - Amend Columns
    dialog box appears.
  3. On the
    Change Indicators
    tab, select the columns for which to add DTL__CI columns. In the
    Available Columns
    list, select one or more columns and click
    Add
    .
    The selected columns appear in the
    Selected Columns
    list.
  4. On the
    Before Images
    tab, select the columns for which to add DTL__BI columns. In the
    Available Columns
    list, select one or more columns and click
    Add
    .
    The selected columns appear in the
    Selected Columns
    list.
    If the selected columns are user-defined fields with expressions that invoke PowerExchange functions, ensure that the functions support BI buffering. For more information about functions, see Appendix A, Appendix A: PowerExchange Functions for User-Defined Fields.
  5. To remove DTL__CI or DTL__BI columns, in the
    Selected Columns
    list, select the columns and click
    Remove
    .
    The selected columns move back to the
    Available Columns
    list.
  6. Click
    OK
    .
    If you added DTL__CI or DTL__BI columns, the columns appear on both the
    Map
    and
    Extensions
    tabs in the
    Extract Definition
    window.
  7. To verify the changes, run a database row test on the extraction map.

0 COMMENTS

We’d like to hear from you!