Multiple choice technology mainframe

01 WS-TOP PIC X(1) 01 WS-TOP-RED REDEFINES WS-TOP PIC X(2). If you MOVE "12" to WS-TOP-RED, DISPLAY WS-TOP will show

  1. 12

  2. 1

  3. 2

  4. 121

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

The field WS-TOP is defined with length 1, while WS-TOP-RED redefines it with length 2. Moving "12" into the larger redefining field updates the overlapping memory, but displaying WS-TOP only outputs its defined size of 1 byte, which contains the character "1".