lookup input variable NOTFOUND not working

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
HariK
Participant
Posts: 68
Joined: Thu May 17, 2007 1:50 am

lookup input variable NOTFOUND not working

Post by HariK »

Hi,

The job description is as follows

Source -- DRS for SQL server
Reference -- DRS for SQL server
Transformer -- performing lookup operation
Target -- DRS for SQL server

I am using lookup input link variable NOTFOUND(=0) in transformer constraint to segregate records which has a match from which doesn't have a match.

The issue is all the records including which does not have match are passed to output link for matched records.

I tried using the ISnull function in the constraint and it is working fine.

Trying to find out if there is any other soultion or workaround for the NOTFOUND variable issue.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The NOTFOUND link variable only works reliably with a hashed file lookup. For direct database lookups, you need to fall back to the Old Skool null check as you are doing.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply