Multiple choice technology mainframe

How many subscripts or indexes are allowed for an OCCURS clause?

  1. 7

  2. 6

  3. 5

  4. 4

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

In COBOL (specifically COBOL 85 and later standards), the maximum number of nested OCCURS clauses (subscripts/indexes) allowed is 7. Older standards like COBOL 74 limited this to 3.