VMS Help  —  COBOL  PROCEDURE_DIVISION, INSPECT  1format TALLYING
  The INSPECT statement counts or replaces occurrences of single
  characters or groups of characters in a data item.

  Format 1 -

   INSPECT src-string TALLYING

   {
   { tally-ctr FOR
   {

    {
    {            [ { BEFORE }                   ]            }      }
    { CHARACTERS [ { AFTER  } INITIAL delim-val ] ...        } ...  } ...
    { { ALL     } {
    { { LEADING } { compare-val

                   [{ BEFORE }                   ]     }     }      }
                   [{ AFTER  } INITIAL delim-val ] ... } ... } ...  } ...
Additional Information: explode extract

src-string
tally-ctr
compare-val
delim-val
Close Help