Figure description: PERFORM statement
This figure illustrates valid PERFORM statement execution sequences. Letters
of the alphabet are used to represent procedures.
The following examples are shown:
- PERFORM a THRU m. The sequence of procedures is a, d, f, j, and
m. Procedure d contains PERFORM f THRU j. In this sequence,
procedures f THRU j are nested within the range of procedures a THRU m.
- PERFORM a THRU m. The sequence of procedures is a, d, h, m, f,
and j. Procedure d contains PERFORM f THRU j. In this sequence,
procedures f THRU j are wholly outside the range of procedures a THRU m.
- PERFORM a THRU m. The sequence of procedures is a, f, m, j, and
d. Procedure d contains PERFORM f THRU j. In this sequence, the two
PERFORM statements have overlapping range; f thru j overlaps a thru m.
- PERFORM a THRU m. The sequence of procedures is a, d, f, j, and
m. Procedure m terminates with an EXIT statement. Procedure d contains PERFORM
d THRU m. In this sequence, both PERFORM statements share the same exit
point.
End of figure description.
|