Multiple choice technology mainframe

Can a SEARCH be applied to a table which does not have an INDEX defined?

  1. No

  2. Yes

  3. can't say

  4. none

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In COBOL, the SEARCH statement performs a table search but requires the table to be defined with an index using the INDEXED BY phrase within the OCCURS clause. If no index is defined, the search cannot be executed, leading to a compilation error.