Convertion in a string

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

Convertion in a string

Post by new_ds_man »

Hi All,

I have a requirement to convert all the special characters in a I/P string.
Any occurance of "#" OR "+" OR "-" in the input string needs to be converted to " " (space).

Example string: ABCD###EF++++GHIJKL--------MNO

Needed output: ABCD EF GHIJKL MNO

Help Appreciated,

Thanks in Advance.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The function would be

Code: Select all

Convert('#+-','   ',In.StringColumn)
new_ds_man
Participant
Posts: 18
Joined: Tue Jul 08, 2008 1:12 pm

Post by new_ds_man »

Thanks ArndW, That works!!!
Post Reply