My current requirement is to move a two byte field in copybook to another field in copybook which is one byte. Then i pick up this one byte value and use it in another program
let me quote an example.
say my 2 byte field has value 12 --- earlier i had validation to move B to the one byte filed . and then down the line validate that if B , use 12.
it was working fine for limited number of digits(1-13).. now my requirement has changed , the value in 2 byte field can vary form 1-42.
so i dont want to use validation saying if 42 move z to 2 byte field and later use the same ,saying if z use 42.
Hope i was clear enough.
any suggestions would be welcome. does using hex values help .
say move x(13) to ws-1byte-field
if yes then , how to get the orignal number back from ws-ibyte-field .