VMS Help  —  COBOL  PROCEDURE_DIVISION, ADD  1format TO
  The ADD statement adds two or more numeric operands and stores the
  result.

  Format 1 -

   ADD { num } ... TO { rsult [ ROUNDED ] } ...

      [ ON SIZE ERROR stment ] [ NOT ON SIZE ERROR stment ]

      [ END-ADD ]

1  –  num

  is a numeric literal or the identifier of an elementary numeric item.

2  –  rsult

  is the identifier of an elementary numeric item.  It is the resultant
  identifier.

3  –  stment

  is an imperative statement.
Close Help