cobol SEARCH statement

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Remarks

The COBOL SEARCH statement comes in two forms. Linear top to bottom SEARCH and a binary SEARCH ALL algorithm. Binary SEARCH ALL assumes a sorted table suitable for a binary search with no elements out of order.

SEARCH statement

SEARCH statement syntax diagram

Linear SEARCH

Linear SEARCH syntax diagram

Binary SEARCH ALL

enter image description here



Got any cobol Question?