concatenation

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
new_ds_man
Participant
Posts: 18
Joined: Tue Jul 08, 2008 1:12 pm

concatenation

Post by new_ds_man »

Hi All,

I have a requirement to insert a special character (ex: +) into a description column.

Example:

Source value : "klhsdpjgljhsljkdgljh"

I need to insert a '+' after every 5 characters

the O/P should be "klhsd + pjglj + hsljk + dgljh"
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What have you tried? Substringing every five characters and concatenating your 'special character' between the pieces?
-craig

"You can never have too many knives" -- Logan Nine Fingers
new_ds_man
Participant
Posts: 18
Joined: Tue Jul 08, 2008 1:12 pm

Post by new_ds_man »

We went with a different alternative, fixed the data before we receive in ETL.
Post Reply