Previous Topic: SubstringNext Topic: Time Details


Subtract

The *SUB built-in function specifies an arithmetic subtraction on two operands, *FACTOR1 and *FACTOR2.

There are three parameters for this function type:

All three parameters must be numeric field types.

CA 2E implements the *SUB built-in function as an RPG SUB statement and as a COBOL SUBTRACT statement.