problem with lookup

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
ragu
Participant
Posts: 19
Joined: Fri Jul 08, 2005 8:42 pm

problem with lookup

Post by ragu »

Hi everybody,

I loaded a oracle table into a hashfile
I am using this hashfile as lookup
The reference link(hash file that i created in previous step) has all data(no nulls)
I am using the same metadata for the hash file
But the reject link has null for three columns
Because of this all the data are getting rejected


Thanks,
Ragu

Can somebody help me with this?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Ragu,

if the lookup on the reference fails you can also get null values in the columns. Have you checked the NOTFOUND variable in the constraint?
loveojha2
Participant
Posts: 362
Joined: Thu May 26, 2005 12:59 am

Post by loveojha2 »

I think you are taking the columns from Hashed Files (the lookup) to the reject link. Since this is the place where the lookup is failing, meaning no row can be found from Hashed File for the lookup keys, that's why it can not provide any value to the reject link(meaning Null).

Solution: Do not take the columns from the lookup to the reject link.
Success consists of getting up just one more time than you fall.
Post Reply