Capture Record Insert Date and Record Update Date in SCD Sta

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
collabxchange
Premium Member
Premium Member
Posts: 34
Joined: Thu Aug 28, 2014 8:48 pm
Location: United States

Capture Record Insert Date and Record Update Date in SCD Sta

Post by collabxchange »

Hi,
I am trying to load a Dimension table which has a mixture of Type 1 and Type 2 columns in it. The data population is working fine as expected when I use the SCD stage. But I am wondering if there is a way to populate Record_Insert_Date and Record_Update_Date in this table based on if a record is inserted(type 2) or updated(type 1).

I could use the Current_Indicator = 'Y' column to populate the Rec_Ins_dt for new records based on Type 2. But how can I update the Rec_Upd_Dt column for Type 1 cols?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use a Column Generator stage between the SCD stage and the stage that performs the update.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
collabxchange
Premium Member
Premium Member
Posts: 34
Joined: Thu Aug 28, 2014 8:48 pm
Location: United States

Post by collabxchange »

I could but how can it help me identify those records which were updated with type 1?
Post Reply