Hi frnds,
I have a requirement. I need to display + or - symbols along with the output.
For example input value is '03' then I have to display it like '-03' or '+'03'.
For doing that I tried defining the edited picture clause as PIC ZZ99- and PIC zz99+ and then moving it to destination data type.
But its not working. can anyone please help me with it.
The destination datatype should be s9(8) comp-3.
Thanks.
WS-CNT PIC S9(7) comp-3.
WS-EDITED-POS PIC +zzzzzz99
WS-EDITED-NEG PIC -zzzzzz99
WS-WRK-DAYS PIC S9(8)V USAGE COMP-3 (TABLE DCLEGEN Variable).