Multiple choice technology mainframe

WS-AMT PIC --.---.---.---.--9,99. MOVE -25000 TO WS-AMT DISPLAY WS-AMT WHAT WILL THE RESULT BE?

  1. -00.000.000.025.000,00

  2. -0.000.000.025.000,00

  3. 25.000,00

  4. -25000,00

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

In COBOL, the PICTURE clause --.---.---.---.--9,99 defines a signed numeric edit format with separate leading and trailing sign positions. When -25000 is moved to this format, the negative sign occupies the leading sign position, and the value is displayed with the specified insertion characters. The correct display is -25000,00 where the comma appears as specified in the PICTURE clause, not the insertion periods shown in the format string itself.