how to do reverce pivoting

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
adisheshu.dwh
Participant
Posts: 12
Joined: Tue Aug 26, 2008 10:48 pm

how to do reverce pivoting

Post by adisheshu.dwh »

hi how can do reverse pivoting
i/p
ename
aaa
bbb
cccc


o/p
aaa,bbb,cccc
ADISHESHU.P
datskosaraju
Premium Member
Premium Member
Posts: 48
Joined: Tue Nov 25, 2008 11:10 pm
Location: Des Moines,IA

Post by datskosaraju »

That is not reverse pivoting,that is Vertical Pivoting.
"It's easier to go down a hill than up it but the view is much better at the top"
-Bennet,Arnold
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

And can be achieved using PIVOT stage in parallel job.
hi sam here
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Afraid not, not until that "direction" is added in a future release as the pivot stage just does columns to rows. This needs a "stage variable concatenation" approach in a transformer to solve, probably with a dummy/trailer row to push out the last group when it hits EOD.
-craig

"You can never have too many knives" -- Logan Nine Fingers
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

chulett wrote:Afraid not, not until that "direction" is added in a future release as the pivot stage just does columns to rows. This needs a "stage variable concatenation" approach in a transformer to solve, probably with a dummy/trailer row to push out the last group when it hits EOD.
You are right Craig, I was bit confused in vertical and horizontal pivoting. I believe the transformer logic for this requirement has been discussed here a lot.
hi sam here
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It has, and quite recently as well. A search for "vertical pivot" should turn them up. You'll even find one about the "Flush Record" I spoke of needing.
-craig

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