Rational Developer for System z
COBOL for Windows, Version 7.5, Language Reference


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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)