The *DIV built-in function specifies an arithmetic division of one field by another. You can specify the shipped field *Rounded to determine whether the result of the division is half-adjusted or not; CA 2E provides two conditions for this purpose.
There are four parameters for this function type:
*FACTOR1, *FACTOR2, and the *Result field must all be numeric field types.
CA 2E implements the *DIV built-in function as an RPG DIV statement and as a COBOL DIVIDE statement.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |