COBOL Manual for TNS/E Programs (H06.03+)
Procedure Division Verbs
HP COBOL Manual for TNS/E Programs—520347-003
9-145
Unconditional PERFORM
procedure-group
proc-1
is a paragraph-name or section-name. Without THROUGH or THRU, proc-1
identifies the only procedure that is to be executed. With THROUGH or THRU,
proc-1 identifies the first procedure of a group.
THROUGH
THRU
indicate that a group of procedures is to be executed.
proc-2
identifies the last procedure in the group.
imperative-statement
is defined under Imperative Statement.
END-PERFORM
ends the scope of the PERFORM statement, causing the PERFORM to be a
delimited-scope statement. If the PERFORM statement does not end with an END-
PERFORM phrase, it is an out-of-line PERFORM. If the PERFORM statement
ends with an END-PERFORM phrase, it is an in-line PERFORM.
Usage Considerations:
•
Execution Cycle of a PERFORM Statement (PERFORM Cycle)
Each execution of the range of a PERFORM statement is called a “PERFORM
cycle.” It begins with the implicit transfer of control to the first statement of the
range of the PERFORM and ends with an implicit transfer of control back to the
internal decision logic of the PERFORM statement. The point at which the return
occurs depends upon the proc-1 THROUGH proc-2 phrase:
°
When proc-2 does not appear and proc-1 is a paragraph-name, the return
occurs after the execution of the last statement in the specified paragraph.
°
When proc-2 does not appear and proc-1 is a section-name, the return
occurs after the execution of the last statement of the last paragraph of that
section.
proc-1
proc-2THROUGH
THRU
VST193.vsd










