Multiple choice technology mainframe

Why Occurs cannot be used in 01 level?

  1. Because, Occurs is used to repeat records.

  2. Occurs is used to repeat fields with same format and not the records.

  3. Only occurs with INDEX can be used in 01 level.

  4. None of the above.

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

In COBOL, the OCCURS clause is used to define repeating fields (array elements) within a record, not repeating records themselves. The 01 level defines the record structure itself, so OCCURS cannot be applied there - it's used at subordinate levels (02-49) to repeat fields with the same format. Option A is incorrect because OCCURS doesn't repeat entire records.