2006 Sep 06 11:14 AM
hi
how to supress the -ve sign from the output value.
which is the statement to use
2006 Sep 06 11:22 AM
make use of
WRITE with
Option
... NO-SIGN
Effect
The leading sign is not output if f is of type I, P or F.
or else
a = a * - 1.
Regards
Prabhu
2006 Sep 06 11:22 AM
make use of
WRITE with
Option
... NO-SIGN
Effect
The leading sign is not output if f is of type I, P or F.
or else
a = a * - 1.
Regards
Prabhu
2006 Sep 06 11:22 AM
hi,
write v_number <b>no-sign</b>.
data: v_pack(10) type p decimals 2 value '12.34-'.
write v_pack no-sign.Regards,
Sailaja.
2006 Sep 06 11:22 AM
2006 Sep 06 11:25 AM
Hi,
You can use the formatting option NO-SIGN with write statement.
Ex.
data int type i.
i = -20.
write 😕 i no-sign.
Hope this helps.