Page 1 of 1

Removing spaces in a Variable.

PostPosted: Thu Jan 20, 2011 4:05 pm
by sriraj1122
Hi All,

I have a variable like "CS__AD__CS" (underscore represents spaces). I have to remove the spaces in the variable and i have to get a value like "CSADCS" ..
I am able to do with small piece of cobol code.

But is there any cobol function which can perform this easier.

Regards,
Sriraj

Re: Removing spaces in a Variable.

PostPosted: Thu Jan 20, 2011 6:00 pm
by Robert Sample
There's no COBOL function to do this. You're probably best off leaving the existing code in place.

Re: Removing spaces in a Variable.

PostPosted: Fri Jan 21, 2011 2:33 pm
by sriraj1122
Thnx a ton !!!