implementation of type 2 scd

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
nkreddy_3

implementation of type 2 scd

Post by nkreddy_3 »

hi,

i want to know how can we implement the type-2 SCD in datasatge server jobs.
you pls tell me the stages used while implenting the type 2 SCD
Sunshine2323
Charter Member
Charter Member
Posts: 130
Joined: Mon Sep 06, 2004 3:05 am
Location: Dubai,UAE

Post by Sunshine2323 »

Hi nkreddy,

Search on SCD will give you tons of information.

This link will get you started
Warm Regards,
Amruta Bandekar

<b>If A equals success, then the formula is: A = X + Y + Z, X is work. Y is play. Z is keep your mouth shut. </b>
--Albert Einstein
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Hello nkreddy_3,

A Type 2 SCD can be implemented in many ways in both the DWH as well as in the ETL tool.

Typically when you get a new column value in the SCD you will need to check it against it's value in the database; if it has changed you will need to update the old value and also to insert the new one.

Doing this lookup into the database can be slow, so often a hashed file is used to speed up this process. Thus you can successfully implement a simple SCD with just a transform and a hashed file stage (with one read and one update and one insert link going into it).

Depending on which tool and version you have, DataStage offers different stages for your use. For example there are CDC (changed data capture) stages available that can simplify your development and detection of changes in dimension values.
palaniappan
Participant
Posts: 41
Joined: Wed Mar 05, 2003 1:28 am

Post by palaniappan »

CRC32 function is the most used for CDC (Changed Data Capture). DS can be designed to support SCDs but it depends on how your Data Warehouse is architectured. And for your information, the next release of DS is said to have a separate stage that will handle SCD.

Thanks, Pal.
Post Reply