Concatenating columns

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
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Concatenating columns

Post by ady »

I need to concatenate the first 10 columns of the source data.

say the columns are 1,2,3,4,5,6,7,8,9,10 then i'm using 1:2:3:4:5:6:7:8:9:10 , is there a simpler way to do it so that i dont have to enter all the column names ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Nope.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post by ady »

I have to CONC 25 columns so thats bad news for me, Anyway..


.... thanks Chulett
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why? You only construct the expression once, if you take care to get it right first time.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post by ady »

I need to do it for about 50 tables with different column names. So i need to keep changing the column names for every job.


I am concatenating the columns and again pulling out substrings from that so if i happen miss a column its gonna be a mess.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Then don't (miss out a column). Take care. Take breaks, so you can continue to concentrate (and for your eye health).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ady
Premium Member
Premium Member
Posts: 189
Joined: Thu Oct 12, 2006 12:08 am

Post by ady »

I will ..
Post Reply