Summary -

In this topic, we described about the EJECT Statement with detailed example.

The EJECT statement specifies the next source statement is to be printed at the top of the next page.

Syntax -

EJECT Syntax

The EJECT statement must be coded as the only statement on the line. The EJECT statement can be written in either Area A or Area B and can be terminated with a separator period.

The EJECT statement must be embedded in a program source. The EJECT statement has no effect on the compilation of the source unit. The EJECT statement has no effect on the execution of the program.