INSPECT TALLYING FOR ALL IDENTIFIER The following COBOL program depicts the use of INSPECT TALLYING FOR ALL IDENTIFIER 01 TEST-STRING PIC X(40) VALUE SPACES. 01 WS-COUNTER PIC 9(9) VALUE ZEROES. 01 SEARCH-STRING PIC X(2) VALUE SPACES. MOVE ‘USE OF INSPECT DEPICTED BY MAINFRAMEWIZARD.COM’ INSPECT TEST-STRING TALLYING WS-COUNTER FOR ALL DISPLAY ‘COUNT OF ALL SEARCH-STRING IN STRING IS = ‘ The output of the program is COUNT OF ALL SEARCH-STRING IN STRING IS = 000000002