Vertical pivot or convert rows to columns

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
smile.achieve
Participant
Posts: 15
Joined: Mon Apr 23, 2012 12:28 pm

Vertical pivot or convert rows to columns

Post by smile.achieve »

All, I am new to datstage and working on 8.1 version of it. I have a requirement where my aggregator stage outputs the data in the form of

Col1 Col2
ABC 21
xyz 52
pqr 94
opq 36

please suggest me in converting above rows in to columns like below

ABC xyz pqr opq
21 52 94 36
Smile :)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Search DSXchange for "vertical pivot"to get details of techniques. The most usual technique in parallel jobs involves Transformer and Remove Duplicates stage (given that you're on version 8.1).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sreewin7
Participant
Posts: 41
Joined: Tue Sep 14, 2010 8:48 pm

Post by sreewin7 »

Adding my comments on top of below answer.

Try to do with few columns and in the server job's go to derivation tab and a column , b column give like this. may be you will get your expected output.

Thanks
sree
Post Reply