Page Numbering
The page number prints as an integer (for example, 1, 2, 3, …) and has a valid range of 1 to four billion (four unsigned bytes of data). If the specified or defaulted font used for printing the page number is other than an EBCDIC font, you must specify it using the TYPE subcommand on the FONT command.
The page number prints using the font specified on the FIELD command. You can also select a POSITION, COLOR, and DIRECTION for the page number using existing FIELD keywords.
The ALIGN parameter on FIELD can also be used to specify whether you want the page number LEFT or RIGHT aligned at the given position.
The PAGECOUNT keyword is allowed with the PAGEDEF and PAGEFORMAT commands that allows you to specify how page numbering is to be handled when switching between page formats. Page numbering can be stopped, reset, resumed for a certain point or continued from a certain point. For a detailed description on how to specify these options, see PAGEDEF Command.