Repeating program actions
Use a PERFORM
statement to repeat the same code (that
is, loop)
either a specified number of times or based on the outcome of a
decision.
About this task
You can also use a PERFORM
statement to execute
a paragraph and then
implicitly return control to the next executable statement. In
effect, this PERFORM
statement is a way of coding
a closed subroutine
that you can enter from many different parts of the program.
PERFORM
statements can be inline or out-of-line.
Related tasks
Choosing inline or out-of-line PERFORM
Coding a loop
Looping through a table
Executing multiple paragraphs or sections
Choosing inline or out-of-line PERFORM
Coding a loop
Looping through a table
Executing multiple paragraphs or sections