hash file issue

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
sdfasih
Participant
Posts: 39
Joined: Wed May 24, 2006 7:22 pm

hash file issue

Post by sdfasih »

hi,
I am trying to load fact table.One lookup hash file contains two fields one of them is
key field but no lookup is done on this hash file its a direct move to the target for both fields
.But the key field becomes red in the transformer stage and gives compilation errors.
So I unchecked the key field check box in the transformer stage for those fields
now there were no compilation errors.

My question is does it will give me problems and its allright to do that?
Similarly I have single field coming into a transformer in a hash file I have to make it
as a key field to get it loaded into hash file and there is no lookup on this field so
again I unchecked
the key field check box in the transformer stage now there were no compilation errors.
My question is does it will give me problems and its allright to do that.
OR is there any another way to do it?
thanx.
urshit_1983
Participant
Posts: 73
Joined: Wed Jun 28, 2006 3:27 pm
Location: NJ

Re: hash file issue

Post by urshit_1983 »

Confused... What actually are you doing ?
Look up is not done or something else ?
"Nobody is expert in Everything,
But Everybody is expert in Something."
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Did you try running that Job? :wink:

A hashed file must have a key column defined. Else, your Job will abort.
I am not sure how you got it to compile :?

Also, Is your hashed file a primary input or a reference lookup? Something doesn't make sense here. Could you be more clear please?
Kris

Where's the "Any" key?-Homer Simpson
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

I'll slow down a little bit.

You can sure get it to compile without a key column. I also see that your hashed file is a reference lookup. Even if it is a straight move into the target field how do you intend to join those rows with the input rows coming from source without any keys to join? Your Output data is all going to be messed up. I am not sure even if your Job is going to run successfully. I haven't tried doing it anytime.
Kris

Where's the "Any" key?-Homer Simpson
urshit_1983
Participant
Posts: 73
Joined: Wed Jun 28, 2006 3:27 pm
Location: NJ

Re: hash file issue

Post by urshit_1983 »

If you are doing a look up then why are you unchecking the mark in hash file ?
"Nobody is expert in Everything,
But Everybody is expert in Something."
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Guys guys, you scared the poor guy away. Go easy on him :wink:
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Did I :?
Kris

Where's the "Any" key?-Homer Simpson
Post Reply