Hi CD,
If you're on an IBM MF and use COBOLII or better and your input field is in a COMP field of 2 bytes, you can try this:
05 your-ip pic 9(003)comp.
05 your-re redefines
your-ip pic x(002).
05 your-op pic x(001).
move your-re(2:1) to your-op.
Regards, Jack.
"A problem well stated is a problem half solved" -- Charles F. Kettering