Take a look at the REXX STRIP function, then take the length.

Gentry, Stephen wrote:
I have a character string 'NOW IS THE TIME          '
Please note that there are multiple spaces/blanks after the word TIME
I want to find the length of this character string not including
the multiple blanks after TIME.(i.e. NOW IS THE TIME  length=15)
I can figure it out with brute force and awkwardness (get the LENGTH
of the string and start working backwards until I hit the first non-blank) but was hoping for a more elegant way. Is there a double-secret Rexx function or a Pipe function that will accomplish this? I'm a little surprised Rexx doesn't have this (unless, again, it's on the double-secret list).
Thanks,
Steve G


--
Rich Smrcina
VM Assist, Inc.
Phone: 414-491-6001
Ans Service:  360-715-2467
rich.smrcina at vmassist.com
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2008 - Chattanooga - April 18-22, 2008

Reply via email to