can anybody tell me the logic

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
harikumar
Participant
Posts: 33
Joined: Wed Apr 21, 2010 9:19 pm
Location: banglore

can anybody tell me the logic

Post by harikumar »

my source table is like

col1,col2,col3
1,x,y
2,a,b


i want target like

col1,col2
1,x
1,y
2,a
2,b
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It's called a (horizontal) pivot, and you can achieve it using a Pivot stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
harikumar
Participant
Posts: 33
Joined: Wed Apr 21, 2010 9:19 pm
Location: banglore

hi

Post by harikumar »

ray.wurlod wrote:It's called a (horizontal) pivot, and you can achieve it using a Pivot stage. ...
by using pivotstage(horizantal) i am trying but i am unable to get the exact data what i am expected so please give correct answer
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The Pivot stage is the correct answer. Tell us how you have it set up and what output you are getting.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply