ENDPAGE (End Page) Keyword in Printer Files--Example

Figure 342 shows how to specify the ENDPAGE keyword.

Figure 342. Specifying the ENDPAGE Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
A*
A          R REC1                      ENDPAGE
A            FLD1           5A    66 10
A*
A          R REC2
A  01                                  ENDPAGE
A            FLD1           5A         POSITION(8.5 10.2)
A

A page eject always occurs after REC1 prints.

If indicator 01 is on when the application writes REC2, a page eject occurs after REC2 prints. If indicator 01 is off when the application writes REC2, no page eject occurs.