Can you please help me understand how the below REDEFINES works ?
When I step through the program,I find the values as below.
XXX-BYTES-01 = '{'
XXX-BYTES-02 = '0'
XXX-BYTES-BINARY = '49392'.
My question is how did we get '49392'.I looked at the below link and found that the Decimal value for EBCDIC '{' is 192 and decimal value of EBCDIC '0' is 240.
http://www.simotime.com/asc2ebc1.htm
Now can some help me in understanding how we get 49392 ?
01 XXX-BYTES.
05 XXX-BYTES-01 PIC X.
05 XXX-BYTES-02 PIC X.
01 XXX-BYTES-BINARY REDEFINES TWO-BYTES
PIC 9(04) COMP-5.
Thanks,
Ram Kumar