SUBTRACT

Short Reference

Syntax

SUBTRACT dobj1 FROM dobj2.

Effect

This statement has the same effect as statement

COMPUTE dobj2 = dobj2 - dobj1.

The content of dobj1 is subtracted from the content of dobj2 and the result is assigned to dobj2. The data objects dobj1 and dobj2 must be numeric. You cannot specify predefined functions or functional methods. The calculation type is determined as for an arithmetic expression.

Note

Obsolete Form: SUBTRACT-CORRESPONDING

Exceptions

Catchable Exceptions

CX_SY_ARITHMETIC_OVERFLOW

CX_SY_CONVERSION_OVERFLOW

Non-Catchable Exceptions