unwanted characters

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
DSkkk
Charter Member
Charter Member
Posts: 70
Joined: Fri Nov 05, 2004 1:10 pm

unwanted characters

Post by DSkkk »

hi,
my sources are XML files and we have a style sheet and a script which convert the XML into pipelimited flat files. but when ihave some extra characters in the XML files it is still getting parsed in the same way and converting into a flat file. i need a shell script which deletes unwanted characters like a |,! etc., so that my datastage job doesn't get aborted because of this character.
thanks.
g.kiran
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

The UNIX command is tr -d '|'. You could also use Perl or sed. The tr is designed to translate one character to another. The -d option will delete these characters.
Mamu Kim
Post Reply