Hash Lookup failure

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
satheesh_color
Participant
Posts: 182
Joined: Thu Jun 16, 2005 2:05 am

Hash Lookup failure

Post by satheesh_color »

Hi All,

I have an oracle source stage and had a lookup with the hashed file.

Oracle Data:

A B C
11 11 -1
12 12 -1

Hashed File

A B C

11 11 100
12 12 200

All the above three columns are key columns.All i need to do is get the C value from the hash file(100,200) and update it into the DB table.

Please let me know your thoughts on this.

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

Post by ray.wurlod »

If all three are key, then your task is impossible for the given data. None of the C values match.

If only A and B are key, then it can be done.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right - either rebuild the hashed file with the proper keys, or investigate the use of the UV stage. The ability to use it to access an account-based hashed file with fewer keys has been discussed here quite a bit. Far easier to just build a new hashed file, however.
-craig

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