Format 1 (Basic PERFORM)
->->--PERFORM-*-procedure-name-1---------------------------->1
+
+
+
*--------------------------------------------->2
1->----*----------------------------*-----*----------------><-
*-THROUGH-*-procedure-name-2-* +
*-THRU----* +
+
2->---imperative-statement END-PERFORM---*
Procedure-name-1, procedure-name-2 must name a section or paragraph in the Procedure Division.
When you specify both procedure-name-1 and procedure-name-2, if either is a procedure-name in a declarative procedure, both must be procedure-names in the same declarative procedure.
If you specify procedure-name-1, you must not specify imperative-statement and the END-PERFORM phrase.
If you omit procedure-name-1, you must specify imperative-statement and the END-PERFORM phrase.
Imperative-statement represents the statements to be executed for an in-line PERFORM statement.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.