Current page number in report (sys.PageNumber)ΒΆ

!temp sys.PageNumber,,u3

Current page number

Stores the current page number. This number is incremented every time the driving logic outputs a new page, and every time a newpage command is executed.

The value of sys.PageNumber may be updated by direct assignment.


NOTES

  • The function psc(7) (PSC_FORM_FEED) issues a top of form character but does not increment the page counter.


EXAMPLE

!footnote {
     print tab(38); " - ";sys.PageNumber; " - "
}