PERFORM (↑ Statements)
◄Key► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Verb: PERFORM
Function: Causes a group of statements to be executed repeatedly.
If the statements are a procedure, this statement
repeatedly transfers control to that procedure, with
automatic return of control each time the procedure
finishes.
Syntax: Which format? ◄Simple► TIMES
◄UNTIL► ◄VARYING►
►►──PERFORM─┬─procedure-name-1─┬─────────────────────────────┬─phrase─┬─►◄
│ └┬─THROUGH─┬─procedure-name-2─┘ │
│ └─THRU────┘ │
└─phrase──imperative-statement END-PERFORM────────────────┘
where phrase is:
►──┬─identifier-1─┬─TIMES───────────────────────►
└─integer-1────┘
-♦-