<?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 Re: Need to get &amp;quot;Page of total pages&amp;quot;. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116079#M23938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting "page 1 of 1" instead of "page 1 of 2". By the way, How would you use &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;{thispage}&lt;/SPAN&gt; .Caould you give me an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2013 20:59:57 GMT</pubDate>
    <dc:creator>bonzybuddy</dc:creator>
    <dc:date>2013-04-22T20:59:57Z</dc:date>
    <item>
      <title>Need to get "Page of total pages".</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116077#M23936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a macro for proc report with RTF output. &lt;/P&gt;&lt;P&gt;I need to report in such a way that if there are more than 4 columns then rest would be reported in next page.&amp;nbsp; Thus if there are 6 columns then two pages would be there. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;lst is number of columns.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%do i=1 %to &amp;amp;lst;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %if &amp;amp;i=4 %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define v&amp;amp;i / display width=15 " %sysfunc(strip(var&amp;amp;i)) * %sysfunc(strip(&amp;amp;&amp;amp;var&amp;amp;i)) * N=%sysfunc(strip(&amp;amp;&amp;amp;a&amp;amp;i))* n (%) "style=[just=Center]page;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %else %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define v&amp;amp;i / display width=15 " %sysfunc(strip(var&amp;amp;i)) * %sysfunc(strip(&amp;amp;&amp;amp;var&amp;amp;i)) * N=%sysfunc(strip(&amp;amp;&amp;amp;a&amp;amp;i))* n (%) "style=[just=Center ];&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With above code, I am able to generate report of two pages successfully if I have more than 4 columns. &lt;/P&gt;&lt;P&gt;But the problem is I am getting "&lt;STRONG&gt;page 1 of 1&lt;/STRONG&gt;" in 1st page footnote and "&lt;STRONG&gt;page 2 of 2&lt;/STRONG&gt;" on second page footnote. But I need is &lt;STRONG&gt;page 1 of 2 and&amp;nbsp; page 2 of 2. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am using "&lt;STRONG&gt;Page ~{pageof}" &lt;/STRONG&gt;to get page number. &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 19:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116077#M23936</guid>
      <dc:creator>bonzybuddy</dc:creator>
      <dc:date>2013-04-22T19:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get "Page of total pages".</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116078#M23937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is what you want different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's also {thispage} I believe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 20:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116078#M23937</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-22T20:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get "Page of total pages".</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116079#M23938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting "page 1 of 1" instead of "page 1 of 2". By the way, How would you use &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;{thispage}&lt;/SPAN&gt; .Caould you give me an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 20:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116079#M23938</guid>
      <dc:creator>bonzybuddy</dc:creator>
      <dc:date>2013-04-22T20:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get "Page of total pages".</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116080#M23939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Sometimes, Word is not cooperative. Frequently, you need to switch into Print Preview mode or you need to scroll to the bottom of the document and back up to the top in order for the page numbers to refresh. I have even seen the page numbers appear as Page 2 of 1 in the Word doc -- although that was back in Office 2003, but usually, paging down or forcing pagination fixed the issue and got Word straightened out. ODS ESCAPECHAR and {pageof} work by inserting Word specific "field codes" into the RTF file. Sometimes you have to get Word's attention to make it paginate correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 22:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116080#M23939</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-04-22T22:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get "Page of total pages".</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116081#M23940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is for PDF and I want the number to start at 47. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options pageno=47;&lt;/P&gt;&lt;P&gt;ods escapechar="^";&lt;/P&gt;&lt;P&gt;ods pdf file="C:\temp\temp.pd" style=journal;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options nonumber nodate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title 'Example of page number';&lt;/P&gt;&lt;P&gt;footnote j=l "^{style [just=l fontsize=9pt fontstyle=roman fontweight=light] ^{unicode 00A9} Reeza}" j=r "^{style [fontsize=9pt fontstyle=roman fontweight=light]^{thispage}";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 22:31:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-get-quot-Page-of-total-pages-quot/m-p/116081#M23940</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-04-22T22:31:58Z</dc:date>
    </item>
  </channel>
</rss>

