EXAMINE statement

The EXAMINE statement is used to count the number of occurrences of a given character in a data item. ACUCOBOL-GT accepts the EXAMINE statement in the HP COBOL compatibility mode. HP COBOL's EXAMINE statement duplicates some of the functionality of the ACUCOBOL-GT Format 1 INSPECT statement, but with slightly different syntax. See Procedure Division Statements for a detailed discussion of the INSPECT statement.