<?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 to insert pagenumbers x of y, using proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-insert-pagenumbers-x-of-y-using-proc-report/m-p/4456#M1823</link>
    <description>How do I insert pagenumbers x of y for multi page report using the proc report procedure.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
APS</description>
    <pubDate>Fri, 31 Aug 2007 15:17:58 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-08-31T15:17:58Z</dc:date>
    <item>
      <title>to insert pagenumbers x of y, using proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-insert-pagenumbers-x-of-y-using-proc-report/m-p/4456#M1823</link>
      <description>How do I insert pagenumbers x of y for multi page report using the proc report procedure.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
APS</description>
      <pubDate>Fri, 31 Aug 2007 15:17:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-insert-pagenumbers-x-of-y-using-proc-report/m-p/4456#M1823</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-08-31T15:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: to insert pagenumbers x of y, using proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-insert-pagenumbers-x-of-y-using-proc-report/m-p/4457#M1824</link>
      <description>Hi:&lt;BR /&gt;
See Example 2 in this forum posting:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?threadID=1796&amp;amp;tstart=0" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?threadID=1796&amp;amp;tstart=0&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
It uses ODS ESCAPECHAR.&lt;BR /&gt;
  &lt;BR /&gt;
An afterthought: The Page X of Y technique shown in the above post is a feature of ODS that can be used in a SAS title or SAS footnote statement -- that means you could use the capability with ANY SAS procedure -- not just PROC REPORT.&lt;BR /&gt;
   &lt;BR /&gt;
Here's a different example program that shows using different procs for Page X of Y -- not just PROC REPORT.&lt;BR /&gt;
   &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
options nodate nonumber;&lt;BR /&gt;
ods rtf file='c:\temp\pagenum.rtf';&lt;BR /&gt;
ods pdf file='c:\temp\pagenum.pdf';&lt;BR /&gt;
  &lt;BR /&gt;
ods escapechar='~';&lt;BR /&gt;
  &lt;BR /&gt;
title1 j=r 'Page ~{thispage} of ~{lastpage}';&lt;BR /&gt;
footnote j=c '--~{thispage}--';&lt;BR /&gt;
  &lt;BR /&gt;
  proc freq data=sashelp.shoes;&lt;BR /&gt;
     title2 'Proc Freq';&lt;BR /&gt;
     tables region;&lt;BR /&gt;
  run;&lt;BR /&gt;
      &lt;BR /&gt;
  proc means data=sashelp.shoes min mean max;&lt;BR /&gt;
    title2 'Proc Means';&lt;BR /&gt;
    class subsidiary;&lt;BR /&gt;
    var sales;&lt;BR /&gt;
  run;&lt;BR /&gt;
       &lt;BR /&gt;
  proc report data=sashelp.shoes nowd;&lt;BR /&gt;
    title2 'Proc Report';&lt;BR /&gt;
    column product sales inventory returns;&lt;BR /&gt;
    define product/group;&lt;BR /&gt;
    rbreak after /summarize;&lt;BR /&gt;
    format sales inventory returns comma14.2;&lt;BR /&gt;
  run;&lt;BR /&gt;
    &lt;BR /&gt;
  proc tabulate data=sashelp.shoes f=comma10.;&lt;BR /&gt;
    where region in ('Asia', 'Pacific', 'Canada');&lt;BR /&gt;
    title2 'Proc Tabulate';&lt;BR /&gt;
    class subsidiary product;&lt;BR /&gt;
    var returns;&lt;BR /&gt;
    table subsidiary all, &lt;BR /&gt;
          Returns='Product Returns'*(product=' ' all);&lt;BR /&gt;
    keylabel sum=' '&lt;BR /&gt;
             all='Total';&lt;BR /&gt;
  run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
title;&lt;BR /&gt;
ods listing;&lt;BR /&gt;
     &lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 31 Aug 2007 15:36:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/to-insert-pagenumbers-x-of-y-using-proc-report/m-p/4457#M1824</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-31T15:36:55Z</dc:date>
    </item>
  </channel>
</rss>

