관리 메뉴

Gentle Breeze

[COBOL] PERFORM statement <6> 본문

⑨ 직무역량강화/zOS COBOL

[COBOL] PERFORM statement <6>

서풍의신 재령 2009. 8. 8. 16:33
▶ 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 under “Conditional expressions”.
    If the condition is true at the time the PERFORM statement is initiated,
    the specified procedures are not executed.

    Any subscripting associated with the operands specified in condition-1 is
    evaluated each time the condition is tested.

If the TEST BEFORE phrase is specified or assumed, the condition is tested before any statements are executed (corresponds to DO WHILE).

If the TEST AFTER phrase is specified, the statements to be performed are executed at least once before the condition is tested (corresponds to DO UNTIL).

In either case, if the condition is true, control is transferred to the next executable statement following the end of the PERFORM statement. If neither the TEST BEFORE nor the TEST AFTER phrase is specified, the TEST BEFORE phrase is assumed.

'⑨ 직무역량강화 > zOS COBOL' 카테고리의 다른 글

[COBOL] PERFORM statement <6>  (0) 2009.08.08
[COBOL] PERFORM statement <5>  (0) 2009.08.08
[COBOL] PERFORM statement <4>  (0) 2009.08.08
[COBOL] PERFORM statement <3>  (0) 2009.08.08
[COBOL] PERFORM statement <2>  (0) 2009.08.08
[COBOL] PERFORM statement <1>  (0) 2009.08.08
0 Comments
댓글쓰기 폼