NOCMPR2
However, under NOCMPR2, id-2 is augmented before id-5 is set. This change creates an incompatibility when id-6 is dependent on id-2.
Consider the following example:
PERFORM PARA3 VARYING X FROM 1 BY 1 UNTIL X IS GREATER THAN 3
AFTER Y FROM X BY 1 UNTIL Y IS GREATER THAN 3.
In this example, id-6 (X) is dependent on id-2 (X) because they are identical.
Under CMPR2, PARA3 will be executed eight times with the following
values:
X: 1 1 1 2 2 2 3 3
Y: 1 2 3 1 2 3 2 3
Under NOCMPR2, PARA3 will be executed six times with the following
values:
X: 1 1 1 2 2 3
Y: 1 2 3 2 3 3
A dependency between identifiers occurs if the first identifier is identical to, subscripted with, a partial or full redefinition of, or variably located depending on the second identifier.