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