CDC Multiple Changes at the same run

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
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

CDC Multiple Changes at the same run

Post by SURA »

Hello All

I have a scenario for SCD Type 2 and i need to know the best way to handle it.

Trying with Change Capture Stage.


Source Data (SQL Server)
1,ABC
1,CDE


LKUP DATA (SQL Server)
1,XYZ


Expected Output:
ID DESC STAT
1 XYZ N
1 ABC N
1 CDE Y


Regards
DS User
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why not use SCD stage?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Due the C++ version mismatch with 8.1 SCD is not working

Post by SURA »

ray.wurlod wrote:Why not use SCD stage?
I cant at this moment. Due the C++ version mismatch with 8.1 SCD is not working. So i have no other choice. Shall i use the Server HASH LOOKUP to do this?

Guide me.

Thanks
DS User
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why not simply a Lookup stage followed by a Transfomer stage to convert null to "N" and anything else to "Y"?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

ray.wurlod wrote:Why not simply a Lookup stage followed by a Transfomer stage to convert null to "N" and anything else to "Y"?
Sorry Ray

I didnt explained properly.

It is not just to convert "Y" to "N". I need to close the present record date - 1 as the close date to the previous record.

Let me check with lookup and let you know.

Thanks
DS User
Post Reply