concatenation problem

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
prams
Participant
Posts: 73
Joined: Mon Apr 02, 2007 11:26 pm

concatenation problem

Post by prams »

Hi

I have requirement like

i am getting the source like this and i need concatenate all the four columns in to one target column

Country Account Region Geo
--------- ------- -------- ------
226 152 (Null) 238




The target should be like this

226|152||238

But i am getting only if any null value comes then this not working.
i did null handling like IsNull(col) then '' Else col.

even thout i am getting like "226|152". i am not getting after null values

help me in this regard

Thanks
Prams
Scope
Premium Member
Premium Member
Posts: 63
Joined: Wed Jun 06, 2007 6:38 am
Location: Chennai

Post by Scope »

use function NullToEmpty(Region ) to get expect output
Kumarez
Scope
Premium Member
Premium Member
Posts: 63
Joined: Wed Jun 06, 2007 6:38 am
Location: Chennai

Post by Scope »

use function 'NullToEmpty(Region)' to get expect output[/code]
Kumarez
bikan
Premium Member
Premium Member
Posts: 128
Joined: Thu Jun 08, 2006 5:27 am

Post by bikan »

is that column under consideration is defined as Nullable yes in datastage?
Post Reply