Tallying and replacing data items (INSPECT)

Use the INSPECT statement to inspect characters or groups of characters in a data item and to optionally replace them.

Use the INSPECT statement to do the following tasks:

You can specify one of the following data items as the item to be inspected:

If the inspected item has:

Examples: INSPECT statement

related references  
INSPECT statement (COBOL for AIX Language Reference)