Using Inner Join in the Join Stage

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
Tasneem
Participant
Posts: 8
Joined: Thu Aug 11, 2005 12:29 am

Using Inner Join in the Join Stage

Post by Tasneem »

Hi,

My application needs an output of this kinf.

COLUMNA COLUMNB
1
2
Tasneem
Participant
Posts: 8
Joined: Thu Aug 11, 2005 12:29 am

Post by Tasneem »

Hi,
Sorry, due to an internal error my message got posted before completion.

My application has the following input:

COLUMNA COLUMNB
1 1
2 2
3 3

Then Output needs to be produced like:
COLUMNA COLUMNB
1 1
1 2
1 3
2 1
2 2
2 3
3 1
3 2
3 3

I have used an Inner Join in the Join Stage where I get an output of this kind:
COLUMNA COLUMNB
1 1
1 2
1 3
2 2
2 3
3 3

Please let me know the solution.
Sunshine2323
Charter Member
Charter Member
Posts: 130
Joined: Mon Sep 06, 2004 3:05 am
Location: Dubai,UAE

Post by Sunshine2323 »

Hi,

Introduce a dummy column in both the files and use the dummy column as the key

Hope this helps:)
Warm Regards,
Amruta Bandekar

<b>If A equals success, then the formula is: A = X + Y + Z, X is work. Y is play. Z is keep your mouth shut. </b>
--Albert Einstein
Sunshine2323
Charter Member
Charter Member
Posts: 130
Joined: Mon Sep 06, 2004 3:05 am
Location: Dubai,UAE

Post by Sunshine2323 »

Hi,

Introduce a dummy column in both the files and use the dummy column as the key

Hope this helps:)
Warm Regards,
Amruta Bandekar

<b>If A equals success, then the formula is: A = X + Y + Z, X is work. Y is play. Z is keep your mouth shut. </b>
--Albert Einstein
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use Full Outer Join
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply