Multiple choice technology mainframe

02 A PIC 9(5) VALUE 1234. 02 B PIC ZZ999. In Procedure Divison, MOVE A TO B DISPLAY B. What will be displayed with above display statement?

  1. 01234

  2. 00123

  3. 1234

  4. 123

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

PIC ZZ999 is an edited numeric format where Z indicates zero suppression and 9 indicates a digit position. When 1234 (which is effectively 01234 in a 9(5) field) is moved to ZZ999, the leading zero is suppressed by the first Z. The remaining 1234 occupies the four digit positions (9999 combined with one Z). The displayed output is '1234' with the leading zero suppressed, matching the edit mask pattern.