UtilityHashLookUp

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
dhiraj
Participant
Posts: 68
Joined: Sat Dec 06, 2003 7:03 am

UtilityHashLookUp

Post by dhiraj »

Hello All,

Can UtilityHashLookUp be used to look up hash files that have been created by specifying a directory path?

Thanks and Regards,

Dhiraj
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

DHiraj,

the nice thing about the Ascential sdk add-ons is that they are also supplied with the source code. A quick look at the way the program uses the Arg1 (the hash file name) shows that the OPEN command is used.

You could make a copy of this program and put in some logic that checks Arg1 to see if it is a path (i.e. looking for the Unix "/" character in the name) and if so, you use the OPENPATH command instead of OPEN. That way the routine can accept both types of Hash file definitions.
Post Reply