problem in doing vertical pivot by pivot enterprise stage

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
sanygup
Participant
Posts: 34
Joined: Thu Sep 20, 2012 10:19 am
Location: newdelhi

problem in doing vertical pivot by pivot enterprise stage

Post by sanygup »

Hello,

I am stuck with an issue doing vertical pivot by pivot enterprise stage.

The issue is that sequence of columns generated from rows are not as expected. For ex:
I have the data as:
Sale1 100
Sale1 200
Sale1 300
Sale2 400
Sale2 500
Sale2 600

wants to convert as:
sale1 100 200 300
sale2 400 500 600

But the output is coming as:
sale1 200 100 300
sale2 600 500 600

Issue is that sequence is not coming proper for the columns as expected.

Please provide the solution.
Aspirant
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

I haven't checked the vertical pivot yet but the first thing which comes to my mind is did you sort the records before sending it to pivot stage? and prevented pivot stage from re-sorting and re-partitioning?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
sanygup
Participant
Posts: 34
Joined: Thu Sep 20, 2012 10:19 am
Location: newdelhi

Thanks for the reply

Post by sanygup »

Yes you are right I haven't sorted the records and now it is working fine.
Aspirant
Post Reply