Mask in Hash file key colums.

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
BMSK
Participant
Posts: 41
Joined: Wed Feb 06, 2008 7:00 am
Location: Bangalore

Mask in Hash file key colums.

Post by BMSK »

Hi All,

I crreated the job with Hash file out put with 4 key(A,B,C,D) colums.

but one of the requiremnet I need to reference this hash file as reference and in that I want to Join only one key colum (A), remain 3 key colums are not required to me. when do this job but its throughin error not compileing not match key colum. how to mask these 3 key in reference. is it possible can use only key colum?

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

Post by ray.wurlod »

In a Hashed File stage you must use the entire key.

You can use a UniVerse stage if you want to use a partial key.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And then expect multiple matches on that partial key. And you'll need to create an index over it if you have any performance issues.
-craig

"You can never have too many knives" -- Logan Nine Fingers
BMSK
Participant
Posts: 41
Joined: Wed Feb 06, 2008 7:00 am
Location: Bangalore

Post by BMSK »

No My requirement in file level I can't use the Universe stage. draw back is that the job which is going to join is the Primary key there and here hash key combination columm not availble in that file. Only one colum availble. if select both side single key selection records are not coming.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Then rebuild the hashed file (or build another) with your single key field.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

BMSK wrote:I can't use the Universe stage.
Why not?
A UniVerse table IS a hashed file.
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