Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

delete -ve sign

Former Member
0 Likes
793

hi

how to supress the -ve sign from the output value.

which is the statement to use

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
762

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

hi

how to supress the -ve sign from the output value.

which is the statement to use

4 REPLIES 4
Read only

Former Member
0 Likes
763

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

Read only

Former Member
0 Likes
762

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.

Read only

Former Member
0 Likes
762

Multiply it by -1.

Regards

-


Sachin

Read only

Former Member
0 Likes
762

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.