DIFFERENCE BETWEEN SEARCH AND SEARCH ALL
The following mainframe tutorial list down the basic differences between the COBOL SEARCH and SEARCH ALL.
SEARCH |
SEARCH ALL |
1) Used for sequential search in COBOL tables. Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â |
1) Used for Binary search. |
2) The entries do not need to  be in any order.                  |
2) The table entries must be in some    order. |
3) SEARCH can use multiple WHEN conditions.              |
3) Only one WHEN is allowed. |
4) SEARCH can be used with any relational condition         |
4) SEARCH ALL works with only equality   condition.                          |
5) SET statement is a must  for initializing the index  before its usage.           |
5) SET statement is not required. |
; ; ; ;