Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: Negative Sign before the value

$
0
0

Hi Anurag Sinha,

 

You can use Condense or ABS , Replace , Concatenate

I have done a small coding.

 

PARAMETERS : A TYPE I.

PARAMETERS : B TYPE I.

DATA : C TYPE I.

DATA : E TYPE CHAR15.

C = A - B .

IF C < 0.

   E = C.

*E = ABS( C ).

CONDENSE E NO-GAPS.

REPLACE '-' INTO E WITH SPACE .

CONCATENATE '-' E INTO E.

ENDIF.

WRITE :/ C.

WRITE :/ E.

 

Regards,

Sindhuja.


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>