hash look up

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
rrsivaraghava
Participant
Posts: 13
Joined: Wed Feb 06, 2008 3:55 am

hash look up

Post by rrsivaraghava »

can we get 5 records in the target,if there is one record in the source and hash file which is used as lookup has 5 records with a same key.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You cannot have 'five records with the same key' in a hashed file, so... no. Hashed files are destructive overwrite or 'last one in wins' when it comes to key handling.

Now, you can create a hashed file with a composite key and then use a UV stage over it where you specify a lesser number of the key fields to create a 'multi record result set' during the reference lookup, as long as you have enabled that Link property. An ODBC stage has the same capability when doing a database lookup.
-craig

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