Joined: 06 Jun 2008 Posts: 8154 Location: East Dubuque, Illinois, USA
INSPECT can replace characters but I don't believe it'll remove them. Your best bet is to write a loop using reference modification to look at each character and move it to an output string if it's not a special character.
Joined: 17 Dec 2007 Posts: 33 Location: pune,INDIA
Declare a WS variable with various 88 level item as special characters which you want to omit from the string. And then traverse through the string comparing with the WS variable, if does NOT match, put each one into an output field and if matches, read the next one. you can do the traversing by a looping.