<?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: Incorrect Pagination-SAS 9.3 - ods escapechar and Proc Report (break after statement) in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255712#M15368</link>
    <description>&lt;P&gt;1) can you use ^{thispage} &amp;nbsp;^{lastpage} &amp;nbsp; &amp;nbsp;?&lt;/P&gt;
&lt;P&gt;2)Could try this way ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data = test nowindows;
column a;
define a / order;

compute before &lt;STRONG&gt;_page_&lt;/STRONG&gt;;
line @3 'Page ^{pageof}' ;
endcomp;

break after a / page; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 10 Mar 2016 02:57:38 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-03-10T02:57:38Z</dc:date>
    <item>
      <title>Incorrect Pagination-SAS 9.3 - ods escapechar and Proc Report (break after statement)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255575#M15367</link>
      <description>&lt;P&gt;In SAS 9.3, while using&amp;nbsp;ods escapechar for pagination (method: 'Page ^{pageof}' in title statement) and break after statement in proc report, I am getting proper page break, but pagination goes incorrect on first page. e.g. If there are total 8 pages in rtf report, then first page shows 'Page 1 of 1', then from second page it shows proper pagination like 'Page 2 of 8', 'Page 3 of 8' and so on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I ran below code in SAS 9.3, the&amp;nbsp;first page of rtf report shows 'Page 1 of 1' (which should be 'Page 1 of 2') and second page shows 'Page 2 of 2' which is proper.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
a=1; output;
a=2; output;
run;

ods escapechar = '^';

ods rtf file = '----PATH----\test.rtf';
title j=r 'Page ^{pageof}';
proc report data = test nowindows;
column a;
define a / order;
break after a / page;&amp;nbsp;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I can always use different method for pagination, but if&amp;nbsp;someone has come across this issue; or has tips or work arounds then that will be great.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Many thanks for the suggestions!&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Mar 2016 16:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255575#M15367</guid>
      <dc:creator>thakkar</dc:creator>
      <dc:date>2016-03-09T16:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Pagination-SAS 9.3 - ods escapechar and Proc Report (break after statement)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255712#M15368</link>
      <description>&lt;P&gt;1) can you use ^{thispage} &amp;nbsp;^{lastpage} &amp;nbsp; &amp;nbsp;?&lt;/P&gt;
&lt;P&gt;2)Could try this way ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data = test nowindows;
column a;
define a / order;

compute before &lt;STRONG&gt;_page_&lt;/STRONG&gt;;
line @3 'Page ^{pageof}' ;
endcomp;

break after a / page; 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Mar 2016 02:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255712#M15368</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-03-10T02:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Pagination-SAS 9.3 - ods escapechar and Proc Report (break after statement)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255719#M15369</link>
      <description>Hi:&lt;BR /&gt;  I thought there was a Tech Support note about this. Generally, all you have to do is scroll to the bottom of the file using Page Down to force Word to re-paginate the document. I think there's an 'F' key to do it, but I'm not sure that I remember what the method is. &lt;BR /&gt;Here's the Tech Support note: &lt;A href="http://support.sas.com/techsup/notes/v8/3/466.html" target="_blank"&gt;http://support.sas.com/techsup/notes/v8/3/466.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Thu, 10 Mar 2016 03:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255719#M15369</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-03-10T03:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Pagination-SAS 9.3 - ods escapechar and Proc Report (break after statement)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255932#M15382</link>
      <description>&lt;P&gt;While trying 1)&amp;nbsp;&lt;SPAN&gt;^{thispage} &amp;nbsp;^{lastpage}, it shows same result as ^{pageof}.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and 2) compute block doesn't show page no.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for suggestions.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Devarshi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2016 20:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255932#M15382</guid>
      <dc:creator>thakkar</dc:creator>
      <dc:date>2016-03-10T20:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect Pagination-SAS 9.3 - ods escapechar and Proc Report (break after statement)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255988#M15383</link>
      <description>&lt;P&gt;Thanks Cynthia.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the Tech Support note is correct. I have to scroll down all the way at the bottom and when come back to first page it re-paginates. But for proper pagination that needs to be done every time I open the file. So I think trying different method for pagination will be better way for creating multiple outputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;-Devarshi&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 02:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Incorrect-Pagination-SAS-9-3-ods-escapechar-and-Proc-Report/m-p/255988#M15383</guid>
      <dc:creator>thakkar</dc:creator>
      <dc:date>2016-03-11T02:32:08Z</dc:date>
    </item>
  </channel>
</rss>

