capture lookup failure

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
vishu19aug
Participant
Posts: 39
Joined: Mon Feb 13, 2012 1:30 pm

capture lookup failure

Post by vishu19aug »

Hi,

I need to implement the 'Not Exists' logic of SQL in Datastage. How can i capture lookup failure records in a file or is there a way to do this in Join stage.

Thanks,
vishal
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: capture lookup failure

Post by SURA »

Can't you use reject in LKUP and get it in a file?

If it is in join, use full outer and in the following TFM do the condition in Stage variable and filter it.

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

Post by ray.wurlod »

Capture failed lookups using the Failed Lookup rule; direct these to a rejects file from the Lookup stage. Successful lookups can be directed to a Copy stage with no output if you prefer to discard these.
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