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
Option indicators are valid for this keyword.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.