Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cobol inspect

Status
Not open for further replies.

thespacecaptain

Programmer
May 21, 2007
2
Hi - is there a quick way to the cobol inspect statement to remove all spaces from a string.

I've got a postal code in a string of 10 bytes, and needs a string with all embedded spaces removed.

I'd appreciate a tip.

Thanks,
 
No, Inspect is generally for character replacement, not removal. The Unstring verb will be what you want to use.
 
thanks, i'm checking out string and unstring now. I found some good examples in another thread as well.

this is a useful site.
 
You'll probably find reference modification far better suited and less complicated for removing spaces from a string
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top