Page 1 of 1

capture lookup failure

Posted: Thu Mar 01, 2012 4:34 pm
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

Re: capture lookup failure

Posted: Thu Mar 01, 2012 4:48 pm
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

Posted: Thu Mar 01, 2012 5:59 pm
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.