contents.gifindex.gifprev1.gifnext1.gif

6.4.2 Multiple Receiving Fields

The arithmetic statements may have multiple resultant fields specified for them. These statements are evaluated as if they were written as a series of statements involving a temporary data item.

The following example illustrates the process.

The statement

 
  ADD A, B, C TO C, D(C), E

is equivalent to

 
  ADD A, B, C GIVING TEMP
  ADD TEMP TO C
  ADD TEMP TO D(C)
  ADD TEMP TO E