ENDPAGE (End Page) Keyword in Printer Files

Use this record-level keyword to eject the current page after the record is printed.

This keyword has no parameters.

Specify DEVTYPE(*AFPDS) on the CRTPRTF command when ENDPAGE is specified in the file. If DEVTYPE is changed to anything other than *AFPDS, the keyword is ignored and a warning message is issued at print time.

An error message is issued if a constant field is specified in a record format where the ENDPAGE keyword is also specified.

You cannot specify ENDPAGE with the following keywords:
SPACEA
SPACEB
SKIPA
SKIPB

Note:
Feature PSF/400 is required for use of this keyword. If PSF/400 is not installed, you will not be able to print files using this keyword and specifying DEVTYPE(*AFPDS).

Option indicators are valid for this keyword.