all rows in one column

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

all rows in one column

Post by shrey3a »

Hi,

I need to o/p the result in below format.
I/P
col1
1
2
3
4
5
6
7

O/P
Co1
1,2,3,4,5,6,7

Thans in advance.

Rgds
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Hi,

Use the pivot stage to achieve this.

Naveen.
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

Post by shrey3a »

Naveen,

I think Pivot will not help as I need one column for all rows

colA -I/P
1
2
3
4

o/p
colB

1234

rgds


[quote="naveendronavalli"]Hi,

Use the pivot stage to achieve this.

Naveen.[/quote]
olgc
Participant
Posts: 145
Joined: Tue Nov 18, 2003 9:00 am

Post by olgc »

I think the Pivot stage do the reverse: read one row and write multiple rows. Can Pivot stage do read multiple rows and combine them into one?

Thanks,
shrey3a
Premium Member
Premium Member
Posts: 234
Joined: Sun Nov 21, 2004 10:41 pm

Post by shrey3a »

No it does not ...that is what we are sruggling for :-)

[quote="olgc"]I think the Pivot stage do the reverse: read one row and write multiple rows. Can Pivot stage do read multiple rows and combine them into one?

Thanks,[/quote]
DeepakCorning
Premium Member
Premium Member
Posts: 503
Joined: Wed Jun 29, 2005 8:14 am

Re: all rows in one column

Post by DeepakCorning »

Cannt we use row merger stage??

"The row merger stage reads data one row at a time from an input link. It merges all the columns into a single string of a specified format. It then writes the string on a given column of the output link. The stage can have a single input link and a single output link."
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Hi Shrey,

Sorry about that. As Deepak said row merger stage will get it done.

Thanks,
Naveen.
Post Reply