WebJun 11, 2003 · 10 just-for-chuckles pic x (64). 10 result pic 99 value zeroes. move spaces to just-for-chuckles. move some-string to ws-data. unstring ws-data delimited by ' ' (two spaces) into just-for-chuckles count in result. ** result contains string length. enjoy Bob. WebThe counter will be updated instantly, displaying the amount of characters, words, sentences, paragraphs and whitespace in your text, not to mention that the keyword density (which you can configure from the options menu) is also displayed. Which devices does the counter work on? Character Count Online works on absolutely any device.
To find the length of a string... - COBOL General discussion
WebCOBOL - Inspect Statements. The INSPECT statement is used to perform various operations on string data. Each of the four formats works slightly differently and is … WebPROCEDURE DIVISION. BEGIN. MOVE "This is a test string" TO STRING . COMPUTE STRING- LENGTH = LENGTH ( STRING ). DISPLAY "The number of characters in the … thom bresh guitar rag
cobol - How do I get rid of trailing and embedded spaces in a string ...
WebJun 23, 2016 · Alternatively, you can use STRING with a POINTER to automatically count the characters moved: WORKING-STORAGE SECTION. 01 SOURCE-STRING PIC X … WebTo use only a portion of a string, delimit it by whatever character indicates the end of the data you want to concatenate. Syntax: STRING identifier-1 or literal-1 DELIMITED BY identifier-2 or literal-2 or SIZE INTO identifier-3 [WITH POINTER identifier-4] [ON OVERFLOW imperative-statement-1] [NOT ON OVERFLOW imperative-statement-2] … thom bresh videos