many columns concatenation into one field

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
Luk
Participant
Posts: 133
Joined: Thu Dec 02, 2004 8:35 am
Location: Poland
Contact:

many columns concatenation into one field

Post by Luk »

Hello, it's me again:)

Maybe you know, how can I concatenate many columns from single stream into one string?
but I don't want to write in every time: DSLink1.colA : DSLink1.colB : ... : DSLink1.colN !!
LUK
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sorry... better start typing. :wink:

Or click on the ellipses (...) and click your way through it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
lshort
Premium Member
Premium Member
Posts: 139
Joined: Tue Oct 29, 2002 11:40 am
Location: Toronto

Post by lshort »

If your source file is Sequential and you want all the columns, you can change the delimeter property for the stage to something that doesnt exist. This will read the row as one long column.
Once you have this long column, if needed, you can replace the actual delimeter with a space, a tab, or whatever.

:-)
Lance Short
"infinite diversity in infinite combinations"
***
"The absence of evidence is not evidence of absence."
rsaliah
Participant
Posts: 65
Joined: Thu Feb 27, 2003 8:59 am

Post by rsaliah »

Just to add to the previous post... Even if your source isn't a Seq file there's nothing stopping you from writing it to a Seq file and using that same method.
:wink:
Luk
Participant
Posts: 133
Joined: Thu Dec 02, 2004 8:35 am
Location: Poland
Contact:

Post by Luk »

Thanks Ishort! It is very smart idea :)
LUK
Post Reply