Page 1 of 1

Mask in Hash file key colums.

Posted: Thu Feb 09, 2012 4:58 am
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

Posted: Thu Feb 09, 2012 7:10 am
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.

Posted: Thu Feb 09, 2012 7:59 am
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.

Posted: Thu Feb 09, 2012 8:00 am
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.

Posted: Thu Feb 09, 2012 8:02 am
by chulett
Then rebuild the hashed file (or build another) with your single key field.

Posted: Thu Feb 09, 2012 6:23 pm
by ray.wurlod
BMSK wrote:I can't use the Universe stage.
Why not?
A UniVerse table IS a hashed file.