scd stage

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
bachi
Participant
Posts: 28
Joined: Sun May 25, 2008 7:02 am

scd stage

Post by bachi »

Hi all

plz give me some brief information about scd stage and mainly i want to know about expiration date and output links
Jasti
Participant
Posts: 44
Joined: Sat Apr 14, 2007 6:34 am
Location: Hyderabad, India

Post by Jasti »

The SCD stage reads source data on the input link, performs a dimension table
lookup on the reference link, and writes data on the output link. The output link
can pass data to another SCD stage, to a different type of processing stage, or to
a fact table. The dimension update link is a separate output link that carries
changes for the dimension. You can perform these steps in a single job or a
series of jobs, depending on the number of dimensions in your database and
your performance requirements.

SCD stages support both SCD Type 1 and SCD Type 2 processing as follows:
SCD Type 1
Overwrites an attribute in a dimension table.
SCD Type 2
Updates the existing row to indicate it expired and adds a new row to the
dimension table.

Please Refer to the Documentation, you will find more info. there
Thanks,
Mohan.A.Jasti.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why not point them to the proper place, mention the actual document and location rather than copy/paste a portion of it and then make generic mention of "the documentation". :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Jasti
Participant
Posts: 44
Joined: Sat Apr 14, 2007 6:34 am
Location: Hyderabad, India

Post by Jasti »

I have the Draft Document on IBM InfoSphere DataStage Data Flow and Job Design..In that SCD stage is described in IBM InfoSphere DataStage stages(Chapter 2)-->Slowly Changing Dimension
Thanks,
Mohan.A.Jasti.
bachi
Participant
Posts: 28
Joined: Sun May 25, 2008 7:02 am

scd stage

Post by bachi »

thnaks

but it give 2 o/p links one contains updated data and other contains source data or inserted data and one more thing is iam getting in dim_update surrogate key as 34,41,56,.... plz help
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:? Please help how? You haven't asked a question or clarified what issue you believe you are having.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Jasti
Participant
Posts: 44
Joined: Sat Apr 14, 2007 6:34 am
Location: Hyderabad, India

Post by Jasti »

Try this ...
You have 2 output links from SCD stage.One is for inserts(say link1) and the second is for Updates(link2).You can design the job to have two instances of target table one is for inserts and the second is for updates. Connect link 1 to targettable(insert) via a surrogatekeygen. stage(if required). and connect link2 to targettable(update).. and provide the proper insert and update sqls.
it give 2 o/p links one contains updated data and other contains source data or inserted data and one more thing is iam getting in dim_update surrogate key as 34,41,56,.... plz help
You need to use surrogate key in the where clause of the update satement...I guess..
I am not sure as I have never worked on the SCD stage
Thanks,
Mohan.A.Jasti.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

For one dimension table:

Code: Select all

           DimTable
               |
               |
               V
     ----> SCDStage ----> FactTable
               |
               | 
               V
           DimTable
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