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