<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Reset Page numbers in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reset-Page-numbers/m-p/4445#M1406</link>
    <description>Can I reset Page numbers on PAGEBREAKS&lt;BR /&gt;
&lt;BR /&gt;
I have a consolidated report for all departments. Report was generated as text file from EG project using List data. I am using PAGE BREAK on Department Code.&lt;BR /&gt;
&lt;BR /&gt;
Can I reset the Page number to 1 after every page break</description>
    <pubDate>Thu, 30 Aug 2007 23:05:41 GMT</pubDate>
    <dc:creator>SanjayM</dc:creator>
    <dc:date>2007-08-30T23:05:41Z</dc:date>
    <item>
      <title>Reset Page numbers</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reset-Page-numbers/m-p/4445#M1406</link>
      <description>Can I reset Page numbers on PAGEBREAKS&lt;BR /&gt;
&lt;BR /&gt;
I have a consolidated report for all departments. Report was generated as text file from EG project using List data. I am using PAGE BREAK on Department Code.&lt;BR /&gt;
&lt;BR /&gt;
Can I reset the Page number to 1 after every page break</description>
      <pubDate>Thu, 30 Aug 2007 23:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reset-Page-numbers/m-p/4445#M1406</guid>
      <dc:creator>SanjayM</dc:creator>
      <dc:date>2007-08-30T23:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reset Page numbers</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reset-Page-numbers/m-p/4446#M1407</link>
      <description>Hi:&lt;BR /&gt;
  Between EACH procedure, you can reset PAGENO to 1 :&lt;BR /&gt;
[pre]&lt;BR /&gt;
options pageno=1;&lt;BR /&gt;
proc print data=sashelp.shoes (obs=50);&lt;BR /&gt;
run;&lt;BR /&gt;
 &lt;BR /&gt;
options pageno=1;&lt;BR /&gt;
proc print data=sashelp.prdsale(obs=50);&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
However, this technique will not work for HTML. &lt;BR /&gt;
&lt;BR /&gt;
And, although this technique will work for LISTING, RTF and PDF, the pages will start at 1 and increment to the end. In other words, the pages generated "internally" by a procedure cannot be restarted (as you have discovered). For example, in the code below, the PAGEBY will cause every Region to start on a new page. However, the page numbers will start at 1, but will be consecutively numbered (about 12-13 pages for all of SASHELP.SHOES):&lt;BR /&gt;
[pre]&lt;BR /&gt;
options pageno=1;&lt;BR /&gt;
proc print data=sashelp.shoes;&lt;BR /&gt;
by region;&lt;BR /&gt;
pageby region;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Unless you do something like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
options pageno = 1;&lt;BR /&gt;
proc print data=sashelp.shoes;&lt;BR /&gt;
where region = 'Asia';&lt;BR /&gt;
run;&lt;BR /&gt;
     &lt;BR /&gt;
options pageno = 1;&lt;BR /&gt;
proc print data=sashelp.shoes;&lt;BR /&gt;
where region = 'Canada';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 31 Aug 2007 00:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Reset-Page-numbers/m-p/4446#M1407</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-31T00:00:04Z</dc:date>
    </item>
  </channel>
</rss>

