Multiple keys using hash file

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
s_rajeshin
Participant
Posts: 1
Joined: Sat Oct 01, 2005 10:36 am

Multiple keys using hash file

Post by s_rajeshin »

Hi all,

Using multiple keys with hash files leads to exclusion of duplicates.Is there any way to avoid this.




Thanks in advance,
Raj.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard. :D

It has nothing to do with multiple key columns. Even with a single key column a hashed file can not have a duplicate. This is how hashed files work. Any write with an existing key value (single or multiple column) is a destructive overwrite.

Some folks leverage this to make the hashed file stage a "remove duplicates" stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply