Varying identifiers

The way in which operands are increased or decreased depends on the number of variables specified. In the 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.

The following figure illustrates the logic of the PERFORM statement when an identifier is varied with TEST BEFORE.

The following figure illustrates the logic of the PERFORM statement when an identifier is varied with TEST AFTER.

This figure illustrates a PERFORM statement, varying one identifier with TEST AFTER. Link to detail.