Page 1 of 1

Inermediate link in join stage

Posted: Mon Feb 14, 2005 4:50 am
by memrinal
I need to join three files together to get the desired file. currently i am doing this by doing a join twice like

File B File C
| |
| |
File A ---> Join-----> Join ---->Output File

both the joins are Left Outer. I need some fields from each file.
While going through the documentation of DataStage PX I read about the Intermediate Links and tried to use them. but the problem that i faced was that only those fields from input can be used to derive output file's fields, which are keys.
However this is not the case in my job. i have to derive several output file fields from input file fields which are not part of the key.
How an i use intermediate links in join stage. Is there any way i can use a single join stage to do this or i will have to stick with multiple joins.
Thanks in Advance

P.S. Data is very huge and Lookup stage cant be used.

Re: Inermediate link in join stage

Posted: Mon Feb 14, 2005 10:43 am
by Someswar Barkataki
Hi
I have used 14 files to join using intermediate Links and it works fine. I too used a left outer join and derived not only the key columns but other columns from each of the input files as well. However, my left most file is the master file that contains two key columns and all other files contain these two common key fields .

Hope that replies your question whether you can use a single join or not.
By the way I donot see any disadvantage using cascading join too since you need to join three files only.

Thanks,
Somesh

Re: Inermediate link in join stage

Posted: Mon Nov 30, 2015 2:48 pm
by olgc
How these 14 files are brought to the join stage: after two links are added as left and right links, more links are added to the stage and will be treated as Intermediate links without any issue?

Thanks,

Re: Inermediate link in join stage

Posted: Mon Nov 30, 2015 3:06 pm
by olgc
I Guess you can use merge stage also, don't you?

Re: Inermediate link in join stage

Posted: Mon Nov 30, 2015 3:11 pm
by olgc
Can any one tell what the intermediate links are different with left and right links? For the types of join: inner, left / right outer and full, are they not applied to these intermediate links?

thanks,

Posted: Mon Nov 30, 2015 3:27 pm
by chulett
Do you have an actual issue you need help with or did you just decide to indulge in a little thread necromancy today?

Posted: Mon Nov 30, 2015 4:59 pm
by ray.wurlod
DataStage does it the same way database servers do it: pairwise from the left. So, if you have three inputs for example, the left and intermediate inputs are joined then the result of that is joined with the right input.