<?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 Section break (Next Page) instead of Page break in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Section-break-Next-Page-instead-of-Page-break/m-p/288547#M16518</link>
    <description>&lt;P&gt;Hi all! I have the following problem.&lt;/P&gt;&lt;P&gt;I do page breaks in my table using "break after&amp;nbsp;sex&amp;nbsp;/ page" construction, but SAS inserts Section breaks(instead of expected Page break) in .rtf output.&lt;/P&gt;&lt;P&gt;It ruins pagination in document, because I need separate pagination&amp;nbsp;for each table (each table in separate section).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code example is below and I also attached desirable output and actual output (please see it with pressed Show/Hide button).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;ods html close;&lt;BR /&gt;ods escapechar = '^';&lt;BR /&gt;options mprint nofmterr nocenter nonumber nodate missing = ' ';&lt;BR /&gt;&lt;BR /&gt;proc template;&lt;BR /&gt; define style MyStyleRTF;&lt;BR /&gt; parent = styles.rtf;&lt;BR /&gt;&lt;BR /&gt; replace fonts /&lt;BR /&gt; 'TitleFont2'=("Arial",8pt)&lt;BR /&gt; 'TitleFont'=("Arial",8pt)&lt;BR /&gt; 'StrongFont'=("Arial",8pt)&lt;BR /&gt; 'EmphasisFont'=("Arial",8pt)&lt;BR /&gt; 'FixedEmphasisFont'=("Arial",8pt)&lt;BR /&gt; 'FixedStrongFont'=("Arial",8pt)&lt;BR /&gt; 'FixedHeadingFont'=("Arial",8pt)&lt;BR /&gt; 'FixedFont'=("Arial",8pt)&lt;BR /&gt; 'headingEmphasisFont'=("Arial",8pt)&lt;BR /&gt; 'headingFont'=("Arial",8pt)&lt;BR /&gt; 'docFont'=("Arial",8pt)&lt;BR /&gt; 'BatchFixedFont'=("Arial",8pt);&lt;BR /&gt;&lt;BR /&gt; replace color_list /&lt;BR /&gt; 'link'= blue&lt;BR /&gt; 'bgH' = white &lt;BR /&gt; 'fg' = black &lt;BR /&gt; 'bg' = white; &lt;BR /&gt;&lt;BR /&gt; class header, footer / &lt;BR /&gt; backgroundcolor = white &lt;BR /&gt; fontfamily = "Arial" &lt;BR /&gt; color = black;&lt;BR /&gt;&lt;BR /&gt; style body from body /&lt;BR /&gt; leftmargin = .7in&lt;BR /&gt; rightmargin = .7in&lt;BR /&gt; topmargin = 1.0in&lt;BR /&gt; bottommargin = 0.7in;&lt;BR /&gt;&lt;BR /&gt; replace Table from Output /&lt;BR /&gt; frame = above &lt;BR /&gt; rules = groups &lt;BR /&gt; cellpadding = 0pt &lt;BR /&gt; cellspacing = 0pt &lt;BR /&gt; borderwidth = 0.8pt;&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;ods rtf file = "Actual_result.rtf" style = MyStyleRTF;&lt;BR /&gt;options orientation = landscape;&lt;BR /&gt;ods startpage = yes; &lt;BR /&gt;&lt;BR /&gt;title1 j = r '{Page \field{\*\fldinst { PAGE \\* MERGEFORMAT }}} of {\field{\*\fldinst SECTIONPAGES \* MERGEFORMAT }}';&lt;BR /&gt;&lt;BR /&gt;ods rtf sectiondata="\pgnrestart\pgnstarts1";&lt;BR /&gt;&lt;BR /&gt;proc report data = sashelp.class;&lt;BR /&gt; define sex / order;&lt;BR /&gt;&lt;BR /&gt; break after sex / page;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods rtf close;&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2016 12:08:33 GMT</pubDate>
    <dc:creator>Olga239</dc:creator>
    <dc:date>2016-08-01T12:08:33Z</dc:date>
    <item>
      <title>Section break (Next Page) instead of Page break</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Section-break-Next-Page-instead-of-Page-break/m-p/288547#M16518</link>
      <description>&lt;P&gt;Hi all! I have the following problem.&lt;/P&gt;&lt;P&gt;I do page breaks in my table using "break after&amp;nbsp;sex&amp;nbsp;/ page" construction, but SAS inserts Section breaks(instead of expected Page break) in .rtf output.&lt;/P&gt;&lt;P&gt;It ruins pagination in document, because I need separate pagination&amp;nbsp;for each table (each table in separate section).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code example is below and I also attached desirable output and actual output (please see it with pressed Show/Hide button).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;ods html close;&lt;BR /&gt;ods escapechar = '^';&lt;BR /&gt;options mprint nofmterr nocenter nonumber nodate missing = ' ';&lt;BR /&gt;&lt;BR /&gt;proc template;&lt;BR /&gt; define style MyStyleRTF;&lt;BR /&gt; parent = styles.rtf;&lt;BR /&gt;&lt;BR /&gt; replace fonts /&lt;BR /&gt; 'TitleFont2'=("Arial",8pt)&lt;BR /&gt; 'TitleFont'=("Arial",8pt)&lt;BR /&gt; 'StrongFont'=("Arial",8pt)&lt;BR /&gt; 'EmphasisFont'=("Arial",8pt)&lt;BR /&gt; 'FixedEmphasisFont'=("Arial",8pt)&lt;BR /&gt; 'FixedStrongFont'=("Arial",8pt)&lt;BR /&gt; 'FixedHeadingFont'=("Arial",8pt)&lt;BR /&gt; 'FixedFont'=("Arial",8pt)&lt;BR /&gt; 'headingEmphasisFont'=("Arial",8pt)&lt;BR /&gt; 'headingFont'=("Arial",8pt)&lt;BR /&gt; 'docFont'=("Arial",8pt)&lt;BR /&gt; 'BatchFixedFont'=("Arial",8pt);&lt;BR /&gt;&lt;BR /&gt; replace color_list /&lt;BR /&gt; 'link'= blue&lt;BR /&gt; 'bgH' = white &lt;BR /&gt; 'fg' = black &lt;BR /&gt; 'bg' = white; &lt;BR /&gt;&lt;BR /&gt; class header, footer / &lt;BR /&gt; backgroundcolor = white &lt;BR /&gt; fontfamily = "Arial" &lt;BR /&gt; color = black;&lt;BR /&gt;&lt;BR /&gt; style body from body /&lt;BR /&gt; leftmargin = .7in&lt;BR /&gt; rightmargin = .7in&lt;BR /&gt; topmargin = 1.0in&lt;BR /&gt; bottommargin = 0.7in;&lt;BR /&gt;&lt;BR /&gt; replace Table from Output /&lt;BR /&gt; frame = above &lt;BR /&gt; rules = groups &lt;BR /&gt; cellpadding = 0pt &lt;BR /&gt; cellspacing = 0pt &lt;BR /&gt; borderwidth = 0.8pt;&lt;BR /&gt; end;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;ods rtf file = "Actual_result.rtf" style = MyStyleRTF;&lt;BR /&gt;options orientation = landscape;&lt;BR /&gt;ods startpage = yes; &lt;BR /&gt;&lt;BR /&gt;title1 j = r '{Page \field{\*\fldinst { PAGE \\* MERGEFORMAT }}} of {\field{\*\fldinst SECTIONPAGES \* MERGEFORMAT }}';&lt;BR /&gt;&lt;BR /&gt;ods rtf sectiondata="\pgnrestart\pgnstarts1";&lt;BR /&gt;&lt;BR /&gt;proc report data = sashelp.class;&lt;BR /&gt; define sex / order;&lt;BR /&gt;&lt;BR /&gt; break after sex / page;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods rtf close;&lt;BR /&gt;
&lt;/PRE&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 12:08:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Section-break-Next-Page-instead-of-Page-break/m-p/288547#M16518</guid>
      <dc:creator>Olga239</dc:creator>
      <dc:date>2016-08-01T12:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Section break (Next Page) instead of Page break</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Section-break-Next-Page-instead-of-Page-break/m-p/289093#M16549</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Please try below&amp;nbsp;code after your PROC TEMPLATE&amp;nbsp;. I edited your code by commenting and replacing with few changes. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods rtf file = "Actual_result.rtf" style = MyStyleRTF;&lt;BR /&gt;options orientation = landscape;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*ods startpage = yes; */&lt;/P&gt;&lt;P&gt;/*title1 j = r '{Page \field{\*\fldinst { PAGE \\* MERGEFORMAT }}} of {\field{\*\fldinst SECTIONPAGES \* MERGEFORMAT }}';*/&lt;BR /&gt;title1 j = r '{Page \field {\*\fldinst PAGE \\*MERGEFORMAT}} {of \field {\*\fldinst &lt;STRONG&gt;NUMPAGES&lt;/STRONG&gt; \\*MERGEFORMAT}}';&lt;/P&gt;&lt;P&gt;/*ods rtf sectiondata="\pgnrestart\pgnstarts1";*/&lt;/P&gt;&lt;P&gt;proc report data = sashelp.class;&lt;BR /&gt;define sex / order;&lt;/P&gt;&lt;P&gt;break after sex / page;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 03:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Section-break-Next-Page-instead-of-Page-break/m-p/289093#M16549</guid>
      <dc:creator>GaneshLekurwale</dc:creator>
      <dc:date>2016-08-03T03:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Section break (Next Page) instead of Page break</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Section-break-Next-Page-instead-of-Page-break/m-p/289130#M16554</link>
      <description>&lt;P&gt;Yes, it works when there is only one table in the document (as in my simplest example).&lt;BR /&gt;But unfortunately when&amp;nbsp;we have&amp;nbsp;several tables pagination retains consecutive.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 08:37:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Section-break-Next-Page-instead-of-Page-break/m-p/289130#M16554</guid>
      <dc:creator>Olga239</dc:creator>
      <dc:date>2016-08-03T08:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Section break (Next Page) instead of Page break</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Section-break-Next-Page-instead-of-Page-break/m-p/289135#M16555</link>
      <description>&lt;P&gt;I am not really sure about what exactly you mean &lt;EM&gt;"But unfortunately when we have several tables pagination retains consecutive."&lt;/EM&gt; I have produced enough&amp;nbsp;reports with the same code and had never been problem with several hundred pages. May be you can elaborate more I am sure there is solution to your case.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 09:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Section-break-Next-Page-instead-of-Page-break/m-p/289135#M16555</guid>
      <dc:creator>GaneshLekurwale</dc:creator>
      <dc:date>2016-08-03T09:17:03Z</dc:date>
    </item>
  </channel>
</rss>

