Hash File (Inner Join)

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
karry450
Participant
Posts: 201
Joined: Wed Nov 14, 2007 11:31 pm
Location: HYD

Hash File (Inner Join)

Post by karry450 »

Hi Friends,

I am using a hashfile as a lookup in my server job, as a default it will be outer join . Is there any chance that I can make this as Inner Join.

If yes can anyone help me please.

Thanks
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Re: Hash File (Inner Join)

Post by sachin1 »

in constraint put "equal to" condition...........i mean
WHERE table_1.column_name = table_2.column_name...........taking database concept into consideration...........
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Just check to see if the lookup succeeded and constrain the job to only pass rows where that is true. Use the Link Variable NOTFOUND, and Not() it to check for 'found'.
-craig

"You can never have too many knives" -- Logan Nine Fingers
karry450
Participant
Posts: 201
Joined: Wed Nov 14, 2007 11:31 pm
Location: HYD

Inner Join.

Post by karry450 »

chulett wrote:Just check to see if the lookup succeeded and constrain the job to only pass rows where that is true. Use the Link Variable NOTFOUND, and Not() it to check for 'found'. ...
Sorry Chulett,
I didnt understand ur concept.

Could you please enlarge in detail.

thanks
karthik
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not much to enlarge. You make the lookup an 'inner join' by only taking the rows where the lookup succeeded and using the 'Link Variables / Input' NOTFOUND value for that reference link to check.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vivekgadwal
Premium Member
Premium Member
Posts: 457
Joined: Tue Sep 25, 2007 4:05 pm

Re: Inner Join.

Post by vivekgadwal »

karry450 wrote:
chulett wrote:Just check to see if the lookup succeeded and constrain the job to only pass rows where that is true. Use the Link Variable NOTFOUND, and Not() it to check for 'found'. ...
Sorry Chulett,
I didnt understand ur concept.
chulett is asking you to do,

Code: Select all

NOT(<linkname from Hashfile>.NOTFOUND)
This <linkname from Hashfile>.NOTFOUND is called a link variable and it is found the way chulett told in his post!

Thanks.
Vivek Gadwal

Experience is what you get when you didn't get what you wanted
Post Reply