Ron, 

I think the manual may help

The normal assignment format is as follows:
[ROUNDED ]{= } {send-field-name }
receive-field-name [INTEGER] [ ]{ } {send-literal }
[TRUNCATED]{EQ} {arithmetic-expression}
receive-field-name
Specify the field name to which a value is to be assigned.
INTEGER
Specify INTEGER to ignore the fractional portion of the value being assigned. 
INTEGER causes only the numerics to the left of the decimal point to be 
transferred during the assignment.
ROUNDED or TRUNCATED
Specify ROUNDED or TRUNCATED when the receiving field (receive-field-name) is 
too small to handle the fractional result of the assignment. TRUNCATED is the 
default.
Specify ROUNDED to round off the fractional result of the assignment statement. 
The least significant digit of the result (receiving field) has its value 
increased by one when the most significant digit of the excess decimal digits 
is greater than or equal to five. For example, if 10.75 is the value of the 
sending field and the receiving field has one decimal place, ROUNDED causes the 
receiving field to be 10.8.



Lizette


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Ron Thomas
Sent: Tuesday, July 23, 2013 4:04 AM
To: [email protected]
Subject: easytrive

Hello.

In easytrive is there any function to round off to the nearest decimal for e.g 
if data is 13.5678 , i need to round off to 13.57.?

Thanks,
Ron T

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to