_PAGENO System Variable
Contains the current page number.
_PAGENO = nCurrentPageNumber
Parameters
- nCurrentPageNumber
Specifies a numeric value from 1 to 32,767 for the current page number. _PAGENO, _PBPAGE and _PEPAGE work in unison. If _PAGENO is set (or incremented) such that it falls outside the range of _PBPAGE to _PEPAGE, no pages are printed.
Remarks
_PAGENO contains a numeric value that determines the current page number. The startup default is 1. _PAGENO allows you to print page numbers in streaming output without defining, initializing, and incrementing a memory variable for that purpose.
See Also
ON PAGE | _PBPAGE | _PEPAGE | _PLENGTH | _PLINENO | _PAGETOTAL System Variable