How to display sign only in case of negative number in cobol
Posted: Fri Apr 08, 2016 6:24 pm
Hi,
I need help on signed integer concept.
I have defined output variable as PIC S9(07)V99 SIGN LEADING SEPARATE.
By this way, we are getting sign before the number .
I got requirement to display sign only in the case of negative. In case of positive, number should not come with positive sign.
Thanks in advance.
I need help on signed integer concept.
I have defined output variable as PIC S9(07)V99 SIGN LEADING SEPARATE.
By this way, we are getting sign before the number .
I got requirement to display sign only in the case of negative. In case of positive, number should not come with positive sign.
Thanks in advance.