The way in which operands are increased or decreased depends on the number of variables specified. In the following discussion, every reference to identifier-n refers equally to index-name-n (except when identifier-n is the object of the BY phrase).
If identifier-2 or identifier-5 is subscripted, the subscripts are evaluated each time the content of the data item referenced by the identifier is set or augmented. If identifier-3, identifier-4, identifier-6, or identifier-7 is subscripted, the subscripts are evaluated each time the content of the data item referenced by the identifier is used in a setting or an augmenting operation.
Figure 12 illustrates the logic of the PERFORM statement when an identifier is varied with TEST BEFORE.
Figure 12. Varying One Identifier--with TEST BEFORE
Figure 13 illustrates the logic of the PERFORM statement when an identifier is varied with TEST AFTER.
Figure 13. Varying One Identifier--with TEST AFTER
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.