The composite of operands in an arithmetic statement can have a maximum length of 30 digits. In Format 2, the composite of operands is determined by using all of the operands in a given statement excluding the data items that follow the word GIVING.
Format 2 (ADD with GIVING) *----------------* V + ->->---ADD--*--identifier-1--*----*----*-----*--identifier-2--*-----------> *--literal-1-----* *-TO-* *--literal-2-----* *---------------------------* V + ->--GIVING---identifier-3--*-----------*-----------------------------------> *--ROUNDED--* ->----*----------------------------------------------*-------------------> *--*----*---SIZE ERROR imperative-statement-1--* *-ON-* ->---*---------------------------------------------------*---------------> *-NOT---*----*---SIZE ERROR imperative-statement-2--* *-ON-* -> --*---------*---------------------------------------------------------><- *-END-ADD-*
In Format 2, identifiers must name an elementary numeric item, except when following the word GIVING. Each identifier following the word GIVING must name an elementary numeric or numeric-edited item.
Literal must be numeric.
If you specify the GIVING phrase, all subsequent identifiers must name an elementary numeric or numeric-edited item. Any data items following the word GIVING are not included in the composite of operands.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.