PERFORM with TIMES phrase
The procedures referred to in the TIMES phrase of the PERFORM statement are executed the number of times specified by the value in identifier-1 or integer-1, up to a maximum of 999,999,999 times. Control then passes to the next executable statement following the PERFORM statement.
If procedure-name-1 is specified, imperative-statement-1 and the END-PERFORM phrase must not be specified.
- identifier-1
- Must name an integer item.
If identifier-1 is zero or a negative number at the time the PERFORM statement is initiated, control passes to the statement following the PERFORM statement.
After the PERFORM statement has been initiated, any change to identifier-1 has no effect in varying the number of times the procedures are initiated.
- integer-1
- Can be a positive signed integer.