The ADD statement causes two or more numeric operands to be
summed and the result to be stored.
ADD { identifier-1 } ... TO { identifier-2 [ ROUNDED ] } ...
{ literal-1 }
[ [ ON ] SIZE ERROR imperative-statement-1 ]
[ NOT [ ON ] SIZE ERROR imperative-statement-2 ]
[ END-ADD ]
ADD { identifier-1 } ... TO { identifier-2 }
{ literal-1 } { literal-2 }
GIVING { identifier-3 [ ROUNDED ] } ...
[ [ ON ] SIZE ERROR imperative-statement-1 ]
[ NOT [ ON ] SIZE ERROR imperative-statement-2 ]
[ END-ADD ]
ADD { CORRESPONDING } identifier-4 TO identifier-5 [ ROUNDED ]
{ CORR }
[ [ ON ] SIZE ERROR imperative-statement-1 ]
[ NOT [ ON ] SIZE ERROR imperative-statement-2 ]
[ END-ADD ]