COBOL/400 Language Help


PERFORM Statement

Description
The PERFORM statement explicitly transfers control to one or more procedures and, after execution of the specified procedures or imperative statements, implicitly returns control to the next executable statement. The PERFORM statement can be:

An out-of-line PERFORM statement. (Procedure-name-1 is specified.)

An in-line PERFORM statement. (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 you specify procedure-name-1, you must not specify imperative-statement and the END-PERFORM phrase.

The PERFORM statement has four formats:


[ Top of Page | Previous Page | Next Page | Table of Contents ]