Page 2 of 2

Re: Find the Length of the data stored in working storage va

PostPosted: Mon Oct 29, 2012 12:59 pm
by BillyBoyo
What about "embedded blanks"?

If your "string" is " HI THERE! ",

The INSPECT LEADING, REVERSE, INSPECT LEADING will get you both leading and trailing blanks without counting the embedded blanks. If doing it "manually" you need is "switch" which is turned off at the first non-blank and turned on again at the next blank.