COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-164
PERFORM UNTIL
Usage Considerations:
•
Negative or Zero Value in the TIMES Phrase
The value of count can be a negative integer or 0, in which case the process
does not perform the procedure or group.
•
See the usage considerations in Unconditional PERFORM.
PERFORM UNTIL
PERFORM UNTIL executes a procedure, group of procedures, or imperative
statement repeatedly until a condition is true. The condition is checked before or after
each PERFORM cycle, and when the condition is met, the PERFORM ends.
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.
procedure-group
imperative-statement
PERFORM
UNTIL
test-site
condition
test-site
UNTIL condition
END-PERFORM
VST196.vsd
proc-1
proc-2THROUGH
THRU
VST193.vsd