Query on Change capture

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mydsworld
Participant
Posts: 321
Joined: Thu Sep 07, 2006 3:55 am

Query on Change capture

Post by mydsworld »

When we can have 'Delete' while using Change capture stage. If a record is deleted from 'Before' and it is not there 'After', that record simply doesn't get a place in output (which has 'after' and change code).

Thanks.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Investigate use of the Compare or Difference stage types, and differently named columns on their inputs. By this means you can capture the "deleted" records. You can not do so with the Change Capture stage because, as you observe, it only outputs the "After" data set changes. This can be re-applied to the "Before" data set using a Change Apply stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply