Find the Length of the data stored in working storage variab



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

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

Postby BillyBoyo » Mon Oct 29, 2012 12:59 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

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

 

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post