ENDPAGGRP (End Page Group) keyword in printer files

Use this record-level keyword to end a logical grouping of pages previously started with the STRPAGGRP keyword. If no group is active, this keyword is ignored.

The keyword has no parameters.

Notes:
  1. Groups of pages cannot be nested or overlapped, each group must be ended before another can begin.
  2. This keyword is valid with DEVTYPE(*AFPDS). If DEVTYPE is changed to anything other than *AFPDS, the keyword will be ignored and a warning message will be issued at print time.
  3. To end the logical group of pages on the current page, the ENDPAGGRP keyword must be issued before skipping to a new page. If you use the ENDPAGE keyword to end a page, then the ENDPAGGRP keyword must be issued before the ENDPAGE keyword.

Option indicators are valid for this keyword.

Example

The following example shows how to specify the ENDPAGGRP keyword.

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....
     A
     A          R RECORD1                   ENDPAGGRP
     A

In the example, RECORD1 ends a group that had been previously started with the STRPAGGRP keyword.