6.1.8.6.3 Multiple Results
When an arithmetic statement has multiple results, execution conceptually
proceeds as follows:
- The statement performs all arithmetic operations to find the result to
be placed in the receiving items, and stores that result in a
temporary location.
- A sequence of statements transfers or combines the value of this
temporary result with each single receiving field. The statements are
considered to be written in the same left-to-right order as the
multiple results are listed.
For example, executing the following statement:
ADD A, B, C, TO C, D(C), E.
is equivalent to executing the following series of statements:
ADD A, B, C GIVING TEMP.
ADD TEMP TO C.
ADD TEMP TO D(C).
ADD TEMP TO E.
In the above example, TEMP is a compiler-supplied temporary result field.
When the addition operation for D(C) is performed, the subscript C
contains the new value of C.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.