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
Raftsman
Premium Member
Premium Member
Posts: 335
Joined: Thu May 26, 2005 8:56 am
Location: Ottawa, Canada

Hash File

Post by Raftsman »

I created an exception Hash file.

Loc_cd
Strt_tm
End_tm


I combined two tables, DB2 and hash file using a Loc_cd. During the join, it is possible that some codes on the DB2 table will not match the hash table. If there is no match I would like to pass a default strt_tm and End_tm that isn't in the hash file. Is there a way to do this.

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

Post by ray.wurlod »

In the Transformer stage detect whether the lookup succeeded (if not, LocCd from that link will be null) using If .. Then .. Else, and supply your default values in that expression.
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