Can i do update in SCD stage if record is delete from source

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
times29
Premium Member
Premium Member
Posts: 202
Joined: Mon Sep 22, 2008 3:47 pm

Can i do update in SCD stage if record is delete from source

Post by times29 »

Hi,

Can i do below scenario using SCD

emp_no and emp_date is business key

Day 1: in dimension

sk emp_no emp_date eff_dt end_dt

7 123 9999-12-31 2013-12-01 9999-12-31


Day 2: in dimension

sk emp_no emp_date eff_dt end_dt

7 123 9999-12-31 2013-12-01 2013-12-31 --this row is delete in source and i want it to update to current_date
87 123 2013-12-31 2013-12-31 9999-12-31 --this is new row

so what i want is if business_key(emp_no+emp_date) not found in source table then update end_dt with cuurent_date

can i do this SCD stage.

Thanks
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

No. You Cannot implement using SCD stage. But you write update statement call the same in before command in source/Primary link.
Srinu Gadipudi
Post Reply