Page 1 of 1
How to implement multiple joins in DataStage?
Posted: Wed Nov 08, 2006 3:45 am
by sethu_ds
I have a db2 query that contains multiple joins involving 4 or 5 tables. How do I implement it in DataStage? Do I have to have individual 'JOIN STAGE' for each of the join queries? or Is there any better way of doing this?
Thanks in Advance.
Regards,
Sethu S
Re: How to implement multiple joins in DataStage?
Posted: Wed Nov 08, 2006 6:45 am
by tagnihotri
Are you working on PX or server edition, will be my first question! But in general to answer your question yes we can implement joins in DS.
sethu_ds wrote:I have a db2 query that contains multiple joins involving 4 or 5 tables. How do I implement it in DataStage? Do I have to have individual 'JOIN STAGE' for each of the join queries? or Is there any better way of doing this?
Thanks in Advance.
Regards,
Sethu S
Posted: Wed Nov 08, 2006 8:10 am
by chulett
You'll notice the post is marked as a TX question... those really need to go in the proper forum to get any attention from the TX folks that hang out here.
Posted: Wed Nov 08, 2006 8:39 am
by ray.wurlod
But the subtopic tells us it's a mainframe job.
The Join stage in mainframe jobs does a pairwise join so, to join five tables you would need to cascade four Join stages.
Probably it's easier to specify the join in the DB2 stage.
Posted: Wed Nov 08, 2006 8:47 am
by chulett
ray.wurlod wrote:But the subtopic tells us it's a mainframe job.
Doh! Hard to find the cheese at the end of this maze...
Posted: Wed Nov 08, 2006 9:01 am
by ray.wurlod
Rats!
Posted: Wed Nov 08, 2006 9:09 am
by chulett
Somehow, I would have expected you to say Rattus!
Clarification on the Query
Posted: Thu Nov 09, 2006 5:08 am
by sethu_ds
Guyz,
First of all sorry for the late reply..
To clarify my query, Its a MVS job that I am trying to build.
As I had mentioned earlier, it will be involving multiple joins. I would like to know the best way of implementing it.
Thanks,
Sethu S
Posted: Thu Nov 09, 2006 8:28 am
by ray.wurlod
Buried among all the jocularity above is my answer.
The Join stage in mainframe jobs does a pairwise join so, to join five tables you would need to cascade four Join stages.
Probably it's easier to specify the join in the DB2 stage.