I have tried the following code:
ws-var-alpha PIC X(4) value 'ABCD'
ws-var-num PIC 9(4) vaue zeros.
move ws-var-alpha to ws-var-num.
display 'ws-var-alph:' ws-var-alpha.
display 'ws-var-num:' ws-var-num.
I have received the following output:
ws-var-alph:ABCD
ws-var-num:ABC4
Anyone please explain how this value is coming in ws-var-num and why its not giving error.
Thanks in advance !