Problems linking File with 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
Tania
Participant
Posts: 22
Joined: Tue Jul 13, 2004 7:54 am
Location: Johannesburg

Problems linking File with Look up

Post by Tania »

Hi all
I have a problem.
I am reading data from a file and I have a look up (hashfile).
To link the source file to the hashfile I check the source file column that is supposed to link to the key in the hash file if it is between two values:if that is the case I then use column 1 as the "key" of the look up else I use the second column ofhe look up.
I have tried the above method but it does not seem to work.....
Does anyone know of a better way?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Tania,

lookups to hashed files need to specify the full key, there are no range lookups supported. If you search the forum for "range lookups" and hashed files you will find that this problem has surfaced many times and there are various solutions available depending upon your requirements.
Post Reply