How to im plement the "SCD2" in DataStage Parallel

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
deesh
Participant
Posts: 193
Joined: Mon Oct 08, 2007 2:57 am

How to im plement the "SCD2" in DataStage Parallel

Post by deesh »

Hi,
I am not yet implemented "SCD2". Can help some one how to Implement "SCD2" in DataStage Parallel Edition.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Do you understand what "SCD2" is? The things that you need to do for dimension tables are to capture a before-image of what's current in the target table in a form you can lookup using the business key. As you process the new data you determine whether the business key exists or not in the target and, if it does, whether it has changed. If it is new, insert a new record with a new surrogate key. If it is changed, update the existing record such that it is marked non-current and insert a new current record. When loading the fact table, you also need to lookup the surrogate key using the business key; the surrogate key will be a foreign key in the fact table.
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