# 5.5 END Statement

The END statement marks the end of a program unit and must be the last source line of every program unit. It takes the following form:

    END

In a main program, if control reaches the END statement, program execution terminates. In a subprogram, a RETURN statement is implicitly executed.

If an initial line contains only an END in the statement field, it is treated as an END statement even if it is followed by continuation lines.

For More Information:

- On END DO statements, see Section 5.4.

- On END IF statements, see Section 5.7.3.

- On END SELECT statements, see Section 5.2.

Previous Page Next Page Table of Contents