Gentle Breeze

[COBOL] PERFORM statement <1> 본문

⑨ 직무역량강화/zOS COBOL

[COBOL] PERFORM statement <1>

재령 2009. 8. 8. 15:47

▶ PERFORM statement

The PERFORM statement transfers control explicitly to one or more procedures and implicitly returns control to the next executable statement after execution of the specified procedures is completed.

The PERFORM statement is:

- An out-of-line PERFORM statement
    When procedure-name-1 is specified.

- An in-line PERFORM statement

    When procedure-name-1 is omitted.

    An in-line PERFORM must be delimited by the END-PERFORM phrase.

    The in-line and out-of-line formats cannot be combined. For example,
    if procedure-name-1 is specified, imperative statements and the END-
    PERFORM phrase must not be specified.

The PERFORM statement formats are:

    * Basic PERFORM
    * TIMES phrase PERFORM
    * UNTIL phrase PERFORM
    * VARYING phrase PERFORM

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

[COBOL] PERFORM statement <3>  (0) 2009.08.08
[COBOL] PERFORM statement <2>  (0) 2009.08.08
[COBOL] EVALUATE ~ END-EVALUATE  (0) 2009.08.08
[COBOL] COMPUTE  (0) 2009.08.08
[COBOL] NUMBER FUNCTIONS  (0) 2009.08.08
Comments