COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-167
PERFORM VARYING
procedure-group
proc-1
is a paragraph-name or section-name. Without THROUGH or THRU, proc-1
is the only procedure that is to be executed. With THROUGH or THRU,
proc-1 is the first procedure of a group.
THROUGH
THRU
indicate that a group of procedures is to be executed.
proc-2
is the last procedure in the group.
test-site
BEFORE
specifies that the condition is to be tested before the perform range is
executed. This is the default.
AFTER
specifies that the condition is to be tested after the perform range is executed.
varying-phrase
specifies the outermost loop of the PERFORM statement control logic.
proc-1
proc-2THROUGH
THRU
VST193.vsd
WITH
TEST BEFORE
AFTER
VST197.vsd
VARYING vary-1 FROM base-1 BY step-1
UNTIL condition-1
VST199.vsd