Query Regarding Edited Picture clause in Cobol
Posted: Tue Mar 08, 2016 2:28 pm
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.
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.