Hi i need to print the value of field2 in format 99.99999
SO I CREATED A N EW FIELD WITH FORMAT 99.99999. But when i do move from field2 to field3 it PRINTS 45.00000 WHICH IS WRONG. i WANT IT TO PRINT 45.12345.
can any one help HOW TO WRITE IN THE CODE.
WORKING-STORAGE SECTION.
01 field2 PIC 9(7).
01 field3 pic 99.99999.
procedure division.
MOVE 4512345 TO field2.
MOVE FIELD2 TO FIELD3.
STOP RUN.
SO I CREATED A N EW FIELD WITH FORMAT 99.99999. But when i do move from field2 to field3 it PRINTS 45.00000 WHICH IS WRONG. i WANT IT TO PRINT 45.12345.
can any one help HOW TO WRITE IN THE CODE.
WORKING-STORAGE SECTION.
01 field2 PIC 9(7).
01 field3 pic 99.99999.
procedure division.
MOVE 4512345 TO field2.
MOVE FIELD2 TO FIELD3.
STOP RUN.