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