Compare the rows in data stage?

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
fareeda_b
Participant
Posts: 48
Joined: Sat Feb 23, 2008 4:25 pm

Compare the rows in data stage?

Post by fareeda_b »

HI ,

How to compare the rows in data stage?


thanks in advance
fareeda
Last edited by fareeda_b on Wed Sep 10, 2008 3:18 am, edited 1 time in total.
Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A field at a time.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Hemant_Kulkarni
Premium Member
Premium Member
Posts: 50
Joined: Tue Jan 02, 2007 1:40 am

Post by Hemant_Kulkarni »

change capture would help
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I ignored that because the post was made in the server forum.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
madhavi83
Participant
Posts: 2
Joined: Mon Sep 01, 2008 11:59 pm

Re: Compare the rows in data stage?

Post by madhavi83 »

fareeda_b wrote:HI ,

How to compare the rows in data stage?


thanks in advance
fareeda
hi fareeda,
ans for your que is (maintain a key column in the change capture stage,based on the key column it will compare before dataset& after dataset.and also if you change any values in after dataset maintain the change values based on this also it will compare before dataset and after dataset and generate the changecodes)
Thanks,
Madhavi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. Please maintain a professional standard of written English here on DSXchange. This will help those whose first language is not English.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
bkarth
Premium Member
Premium Member
Posts: 9
Joined: Wed Oct 26, 2005 2:04 pm

Re: Compare the rows in data stage?

Post by bkarth »

fareeda_b wrote:HI ,

How to compare the rows in data stage?


thanks in advance
fareeda
Server jobs have a CRC32() function that you can use to determine if any part of a row has changed. Comparing the new CRC32() result with the previous CRC32() result. I have seen this done two ways. One is to populate the CRC column by using CRC32(col1:col2:col3:...etc) for all columns. Another is to use the CRC32() on the result of the RowMerger stage (There is also a RowSplitter stage).

If you use 8.1 It includes this stage.

I hope it is helpful.

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

Post by ray.wurlod »

RowSplitter and RowMerger stages are available at least back to version 7.5, maybe even to 7.0.
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