accesssing a hash file in a Basic routine

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
supernova2005
Participant
Posts: 37
Joined: Mon Jan 24, 2005 10:12 am

accesssing a hash file in a Basic routine

Post by supernova2005 »

Hi everyone,

I need to write a Datastage basic routine to lookup a hash file and return the result.

Does anyone know how I can do it?
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

You can refer to 'KeyMgtGetNextValue' under Routines -> SDK
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Better yet, use the hash file lookup function under the SDK folder:

Code: Select all

Routines
---->SDK
--------->  UtilityHashLookup
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard! :D

I need to write a Datastage basic routine to lookup a hash file and return the result.

Why? This is exactly what the Hashed File stage does! Why do you want to re-write DataStage functionality in code (to be used within DataStage!), which you then need to maintain? :?
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