Page 1 of 1

Pivot

Posted: Tue Aug 18, 2009 12:07 pm
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

Posted: Tue Aug 18, 2009 12:29 pm
by chulett
That would be a "vertical pivot".

Posted: Tue Aug 18, 2009 2:44 pm
by Sainath.Srinivasan
If the target is a sequential file, set the record delimiter to none (or spaces).

Posted: Tue Aug 18, 2009 3:08 pm
by chulett
That's certainly one technique, which a search would reveal. :wink:

Re: Pivot

Posted: Tue Aug 18, 2009 10:11 pm
by zhzhs
i think u can do it by transforms stage