Multiple choice technology mainframe

Determine the total number of bytes in the following 01 REC-1. 02 FIRST-GROUP. 03 A1 PIC X(4). 03 A2 PIC 99. 02 REDEFINES FIRST-GROUP. 03 A3 PIC 999. 03 A4 PIC 999. 02 THIRD-GROUP. 03 A5 OCCURS 5 TIMES PIC 99.

  1. 22

  2. 16

  3. 12

  4. 14

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

01 REC-1 contains: A1 (PIC X(4)) = 4 bytes, A2 (PIC 99) = 2 bytes. FIRST-GROUP total = 6 bytes. REDEFINES FIRST-GROUP means A3 (PIC 999) and A4 (PIC 999) share the same 6 bytes (no additional space). A5 OCCURS 5 TIMES PIC 99 = 5 × 2 = 10 bytes. Total = 6 (from FIRST-GROUP) + 10 (from THIRD-GROUP) = 16 bytes. REDEFINES does not allocate additional memory - it redefines the same storage area.