To convert the row values to the 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
uppalapati2003
Participant
Posts: 70
Joined: Thu Nov 09, 2006 2:14 am

To convert the row values to the columns

Post by uppalapati2003 »

Hi All,

i want to change the row values to the values of difrent columns

my source is like

ID Type
1 Clerk
1 Accountant
1 Manger

my taget should be the like this

ID TYPE_Clerk Type_Accountent Type_Manger Type_Gm
1 Clerk Accountant Manger NULL

if any one have any idea please reply back that would be the great

Thanks
Srini
mahadev.v
Participant
Posts: 111
Joined: Tue May 06, 2008 5:29 am
Location: Bangalore

Post by mahadev.v »

Do a search on "Vertical pivot". There is transformer logic as well, in those posts. You would have to customize it for your needs.
"given enough eyeballs, all bugs are shallow" - Eric S. Raymond
Post Reply