ILBOINS

ILBOINS is the routine called when the INSPECT statement is used in a COBOL program. The INSPECT statement is useful for filling selective portions of a data item with a value, or for replacing portions with a corresponding portion of another data item. You can also use it to count the number of times a specific character (for example zero, space, asterisk) occurs in a data item.

Hints

Although the INSPECT statement is convenient and useful, it is designed to handle a wide variety of needs and can be inefficient. If you can find a high percentage of execution caused by INSPECT statements, consider redesigning your code to avoid use of the statement.

Reference Sources

VS COBOL II, Application Programming Guide for MVS and CMS, Release 3.0, 3.1, 3.2, SC26-4045.

IBM OS/VS COBOL Subroutine Library Program Logic, LY28-6425.