Multiple choice technology mainframe

Can Redefine & occur clause coded in the same level?

  1. True

  2. False

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

REDEFINES and OCCURS cannot both be specified at the same level number in a COBOL data description entry. REDEFINES must be at the same level as the item being redefined, while OCCURS creates a table/array. To use both, you would typically use REDEFINES at one level and have OCCURS in a subordinate level within the redefined item.