ILBOSCH

ILBOSCH is the COBOL routine called when a SEARCH ALL statement is used. This results in a binary search on a table. A binary search is faster than an ordinary SEARCH statement (except with very small tables) but can be used only when the SEARCH arguments are in alphabetic or numeric order.

Hints

SEARCH ALL is generally the most efficient type of search. However, if it is likely that the same item will be consecutively searched for, or you can determine what part of a table an item will be found in, it may be possible to code a more efficient search routine. Refer to the CPU attribution reports to determine which statement called this routine.

Reference Sources

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