Special character conversion to blank

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
Rajee
Participant
Posts: 46
Joined: Thu Mar 13, 2008 7:06 am
Location: India

Special character conversion to blank

Post by Rajee »

Hi All,

I have a problem.
I have a string column from source file which can consist of any type of character.
Any character beyond [A-Z], [a-z] and [0-9] will be considered special character. In case there are any special character we need to replace them with blank.
There is no specified set of special character.
Can anyone help me to resolve the same. :(
Thanks,
Rajee
Rajee
Participant
Posts: 46
Joined: Thu Mar 13, 2008 7:06 am
Location: India

Post by Rajee »

For example incase the source is 5A@~24

output should be : 5A24
Thanks,
Rajee
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Try extending the logic noted here:

viewtopic.php?t=129328
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply