Hi guys,
I'm currently working on something which requires me to move an unpacked numeric to a packed numeric variable in a copybook.
02 UNPACKED-NUMBER PIC S9(13)V9(02).
02 PACKED-NUMBER PIC S9(13)V9(02) COMP-3.
I remember that someone told me this can't be done but I'm not sure if I remember it correctly. Is this possible? I tried displaying it also just to see but nothing comes up.
I also tried using the REDEFINES verb and I get weird values when displayed. So I'm not sure if I'm doing it right.
02 W-REDEFINED-NUM PIC S9(13)V9(02) COMP-3.
02 W-TEMP REDEFINES W-REDEFINED-NUM.
03 W-TEMP2 PIC S9(13)V9(02).
Am I doing something wrong? Please help. I'm using Microfocus by the way.
I'm currently working on something which requires me to move an unpacked numeric to a packed numeric variable in a copybook.
02 UNPACKED-NUMBER PIC S9(13)V9(02).
02 PACKED-NUMBER PIC S9(13)V9(02) COMP-3.
I remember that someone told me this can't be done but I'm not sure if I remember it correctly. Is this possible? I tried displaying it also just to see but nothing comes up.
I also tried using the REDEFINES verb and I get weird values when displayed. So I'm not sure if I'm doing it right.
02 W-REDEFINED-NUM PIC S9(13)V9(02) COMP-3.
02 W-TEMP REDEFINES W-REDEFINED-NUM.
03 W-TEMP2 PIC S9(13)V9(02).
Am I doing something wrong? Please help. I'm using Microfocus by the way.