Pivot

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
kumar66
Participant
Posts: 265
Joined: Thu Jul 26, 2007 12:14 am

Pivot

Post by kumar66 »

Hi All,


I need to convert the rows to columns.


My input is

H 1
T 1
D 20

My output should be
Head HeaderRC Footer FooterRC Detail DetailRC
H 1 T 1 D 20


Bascially three rows should come into one row.
How to acheive this.?

Please Advice.

Thanks & Regards,
Kumar66
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That would be a "vertical pivot".
-craig

"You can never have too many knives" -- Logan Nine Fingers
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

If the target is a sequential file, set the record delimiter to none (or spaces).
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

That's certainly one technique, which a search would reveal. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
zhzhs
Participant
Posts: 13
Joined: Mon Nov 13, 2006 10:40 pm
Location: china

Re: Pivot

Post by zhzhs »

i think u can do it by transforms stage
I have a baby
Post Reply