Hi All,
What is the o/p if I move a var 'A' which is 9(09) to other var 'B' which is S9(09) comp-3 and to var 'C' which is 9(09) comp-3.
And suppose the value in var 'A' is
000000000.
I am getting value which seems to be junk in the variable C.!!!
WORKING-STORAGE SECTION.
01.
05 A-X.
10 A PIC 9(09) VALUE 000000000.
05 B-X.
10 B PIC S9(09) COMP-3.
05 C-X.
10 C PIC 9(09) COMP-3.
PROCEDURE DIVISION.
MOVE A TO B
-001-I No Report Writer data entries were found in this program.
MOVE A TO C
DISPLAY 'A-X: >' A-X '<'
DISPLAY 'B-X: >' B-X '<'
DISPLAY 'C-X: >' C-X '<'
GOBACK
.