목록⑨ 직무역량강화/zOS COBOL (12)
Gentle Breeze
▶ PERFORM with UNTIL phrase In the UNTIL phrase format, the procedures referred to are performed until the condition specified by the UNTIL phrase is true. Control is then passed 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. condition-1 Can be any condition described und..
▶ PERFORM with VARYING phrase The VARYING phrase increases or decreases the value of one or more identifiers or index-names, according to certain rules. The format-4 VARYING phrase PERFORM statement can serially search an entire seven-dimensional table. If procedure-name-1 is specified, imperative-statement-1 and the END-PERFORM phrase must not be specified. If procedure-name-1 is omitted, the A..
▶ PERFORM with TIMES phrase The procedures referred to in the TIMES phrase PERFORM statement are executed the number of times specified by the value in identifier-1 or integer-1. 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 ..
▶ END-PERFORM Delimits the scope of the in-line PERFORM statement. Execution of an in-line PERFORM is completed after the last statement contained within it has been executed.
▶ Basic PERFORM statement The procedures referenced in the basic PERFORM statement are executed once, and control then passes to the next executable statement following the PERFORM statement. Note: A PERFORM statement must not cause itself to be executed. A recursive PERFORM statement can cause unpredictable results. procedure-name-1, procedure-name-2 Must name a section or paragraph in the proc..