INSPECT Statement (JVM COBOL)

Provides the ability to perform tally, replace, tally and replace, and convert and tally trailing operations on a data item.

inspect-statement

Inspect/Tallying

Inspect Format 1

Inspect/Replacing

Inspect Format 2

Inspect/Tallying/Replacing

Inspect Format 3

Inspect/Converting

Inspect Format 4

Inspect/Tallying for Trailing/Replacing Trailing

Inspect Format 5

Further information

identifier-1 must be of type string. All other identifiers or literals must be of data types string or character.