Rejecting records in Lookup stage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
sweety123
Participant
Posts: 18
Joined: Thu Dec 10, 2009 5:28 am

Rejecting records in Lookup stage

Post by sweety123 »

Hi all,

I need to reject records to a sequential file when the lookup fails. Can anyone guide me how to do this.....?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Create a reject link on the Lookup stage and feed it into a Sequential File stage. Change the Lookup Failed rule in the Lookup stage so as to direct stream input rows for which the lookup failed to the reject-handling link.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sweety123
Participant
Posts: 18
Joined: Thu Dec 10, 2009 5:28 am

Post by sweety123 »

I did just that.....but the lookup stage is not showing the reject file......
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It can't not show it.

Does your Lookup stage have two (or more) input links and two output links? What do the output links look like?
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