WS-AMT PIC --.---.---.---.--9,99. MOVE -25000 TO WS-AMT DISPLAY WS-AMT WHAT WILL THE RESULT BE?
-
-00.000.000.025.000,00
-
-0.000.000.025.000,00
-
25.000,00
-
-25000,00
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.