Michel,
In some cases it may generate different total # of pages. Printing to a file is only relaible way to get total # of pages.
>Sorry - that should have been:
>
>You can also leave out the "to x.prn" to avoid having to erase the temp file. Saves good time:
>
>Report form rptrun Noconsole
>TOTALPAGENO=_PAGENO
>Report form rptrun to Print Prompt Noconsole
>
--sb--