Multiple choice technology mainframe

Why occurs can not be used in 01 level ?

  1. 01 is record level

  2. No multiple record level fields

  3. Occurs repeat the fields only

  4. All of the above

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

The OCCURS clause cannot be used at 01 level because 01 represents the record definition itself, not a repeating field within a record. Multiple 01-level entries define separate record formats, not repeated fields. OCCURS is designed to repeat data items within a record structure, not repeat entire records. All these reasons combine to make 01-level OCCURS invalid in COBOL.