INSPECT TALLYING FOR CHARACTER AFTER INITIAL SPACES The following COBOL program depicts the use of INSPECT TALLYING FOR CHARACTER BEFORE INITIAL SPACES 01 TEST-STRING PIC X(40) VALUE SPACES. 01 WS-COUNTER PIC 9(9) VALUE ZEROES. MOVE ‘THIS IS TEST STRING TO TEST LEADING SPACES’ INSPECT TEST-STRING TALLYING WS-COUNTER FOR CHARACTERS AFTER INITIAL SPACES DISPLAY ‘CHARACTERS AFTER INITIAL SPACES = ‘ The output of the program is CHARACTERS AFTER INITIAL SPACES = 000000035