How to capture Reject data from reference dataset

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
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

How to capture Reject data from reference dataset

Post by srai »

Hi All,

I have a requirement to capture the reference data which is not matching with the master data set.

How could we implement in DataStage using a single stage means either Transformer or Lokkup or Join or Merge?
grimm336
Participant
Posts: 12
Joined: Thu Jun 25, 2009 10:19 am

Post by grimm336 »

For this join can be the best option.
beacause in look up you can only get records of master dataset,
grimm
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Forget data combining stages (Lookup, Join, Merge) - they do not allow you to identify the rows that were not processed.

Look at one of the change detection stage types (Difference, Compare or, perhaps, Change Capture).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

you can use merge stage.
it will cpature reference dataset reject records.
Srinu Gadipudi
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

But it won't
srai wrote:capture the reference data which is not matching with the master data set
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srikanth386
Participant
Posts: 26
Joined: Sun Dec 23, 2007 3:21 am
Location: hyderabad

Re: How to capture Reject data from reference dataset

Post by srikanth386 »

srai wrote:Hi All,

I have a requirement to capture the reference data which is not matching with the master data set.

How could we implement in DataStage using a single stage means either Transformer or Lokkup or Join or Merge?
definitely we can use the merge stage to capture the secondary(i.e ref ) dataset because when u go to join we cannot have any reject link capture and when u go for lookup it will capture the only primary unmatched data....so better to go for merge such that we can capture the secondary records into the reject link....
SRIKANTH
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Have you ever used a Merge stage, Srikanth?

What row goes into the reject link - the one from the master input or the one from the update (reference) input?

Also, please strive for a professional standard of written Engish on DSXchange. The second person personal pronoun in English is spelled "you". U is one of our posters.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

update(reference) input link reject rows
Srinu Gadipudi
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

Re: How to capture Reject data from reference dataset

Post by srai »

srikanth386 wrote:
srai wrote:Hi All,

I have a requirement to capture the reference data which is not matching with the master data set.

How could we implement in DataStage using a single stage means either Transformer or Lokkup or Join or Merge?
definitely we can use the merge stage to capture the secondary(i.e ref ) dataset because when u go to join we cannot have any reject link capture and when u go for lookup it will capture the only primary unmatched data....so better to go for merge such that we can capture the secondary records into the reject link....
'

Srikanth,
I just wanted to know that can we get reject data from both master set and reference set using merge store?
srai
Participant
Posts: 101
Joined: Wed Feb 09, 2005 10:50 pm

Re: How to capture Reject data from reference dataset

Post by srai »

srikanth386 wrote:
srai wrote:Hi All,

I have a requirement to capture the reference data which is not matching with the master data set.

How could we implement in DataStage using a single stage means either Transformer or Lokkup or Join or Merge?
definitely we can use the merge stage to capture the secondary(i.e ref ) dataset because when u go to join we cannot have any reject link capture and when u go for lookup it will capture the only primary unmatched data....so better to go for merge such that we can capture the secondary records into the reject link....
'

Srikanth,
I just wanted to know that can we get reject data from both master set and reference set using merge store?
srinivas.g
Participant
Posts: 251
Joined: Mon Jun 09, 2008 5:52 am

Post by srinivas.g »

Yes....(Merge stage)

Master reject rows will stored in stream output link and
Reference reject rows will be stored in reject link.
Srinu Gadipudi
Post Reply