<?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 Break page proc report ods rtf/pdf in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264170#M15637</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that &amp;nbsp;contain a breaking page , byte(12) , as shown bellow&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
attrib a length=$50;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a= "aaaa"; output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=byte(12); output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a= "bbbb"; output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=byte(12); output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a= "cccc"; output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=byte(12); output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a= "dddd"; output;
&amp;nbsp;run ;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;proc report data=test ;
&amp;nbsp;col a;
&amp;nbsp;run ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the proc report to display the dataset within an ods PDF / RTF&lt;/P&gt;&lt;P&gt;I would like to break the page when the a variable equal to byte(12) , but the proc report don’t do&amp;nbsp; that , it display only a blank space.&lt;/P&gt;&lt;P&gt;The are another way to break page by creating a _page variable and add &amp;nbsp;break before __page / page ; but it is not appropriate because it create a new section for each breaking page&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Apr 2016 13:57:26 GMT</pubDate>
    <dc:creator>reznac</dc:creator>
    <dc:date>2016-04-15T13:57:26Z</dc:date>
    <item>
      <title>Break page proc report ods rtf/pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264170#M15637</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that &amp;nbsp;contain a breaking page , byte(12) , as shown bellow&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
attrib a length=$50;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a= "aaaa"; output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=byte(12); output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a= "bbbb"; output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=byte(12); output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a= "cccc"; output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a=byte(12); output;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a= "dddd"; output;
&amp;nbsp;run ;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;proc report data=test ;
&amp;nbsp;col a;
&amp;nbsp;run ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the proc report to display the dataset within an ods PDF / RTF&lt;/P&gt;&lt;P&gt;I would like to break the page when the a variable equal to byte(12) , but the proc report don’t do&amp;nbsp; that , it display only a blank space.&lt;/P&gt;&lt;P&gt;The are another way to break page by creating a _page variable and add &amp;nbsp;break before __page / page ; but it is not appropriate because it create a new section for each breaking page&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 13:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264170#M15637</guid>
      <dc:creator>reznac</dc:creator>
      <dc:date>2016-04-15T13:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Break page proc report ods rtf/pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264174#M15638</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a page variable containing the observations per page and break on that:&lt;/P&gt;
&lt;PRE&gt;data test;
  length a $50; 
     a= "aaaa"; pge=1; output;
     a= "bbbb"; pge=1; output;
     a= "cccc"; pge=2; output;
     a= "dddd"; pge=2; output;
 run ;
  
proc report data=test ;
  col pge a;
  define pge / group noprint;  /* Or order instead of group */
  define a / "Avar";

  break after pge / page;
run;&lt;/PRE&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264174#M15638</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-15T14:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Break page proc report ods rtf/pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264177#M15639</link>
      <description>&lt;P&gt;This is a very good question. &amp;nbsp;I don't know the answer. &amp;nbsp; One way might be to edit the RTF file I do that to remove paragraph marks in RTFs with embedded graphics. &amp;nbsp;There are 4 paragraph marks that are inserted,&amp;nbsp;by something, that take up a lot of vertical&amp;nbsp;space, but enough about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another possibility&amp;nbsp;might be to use PROC DOCUMENT but that may produce the same section breaks I don't know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you get a good answer that's easy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be good to know your SAS version and OS.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264177#M15639</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-04-15T14:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Break page proc report ods rtf/pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264185#M15640</link>
      <description>&lt;P&gt;sas version : 9.4&amp;nbsp;&lt;/P&gt;&lt;P&gt;os : hpux&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264185#M15640</guid>
      <dc:creator>reznac</dc:creator>
      <dc:date>2016-04-15T14:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Break page proc report ods rtf/pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264542#M15657</link>
      <description>&lt;P&gt;This uses a data step to remove the section break but did not work unless I used ODS option BODYTITLE. &amp;nbsp;I don't know if this will be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   do page=1 to 2;
      do n = 0 to 4;
         length a $128;
         a = repeat('It is working? ',n);
         output;
         end; 
      end;
   run ;
ods rtf file='~/section.rtf' bodytitle;
title 'title1';
footnote 'Footnote 1';
proc report data=test ;
   col page a;
   define page / order noprint; 
   define a / "Avar";
   break after page / page;
   run;
   ods rtf close;
data _null_;
   infile '~/section.rtf' length=l lrecl=1024;
   file '~/section2.rtf' lrecl=1024;
   input;
   if find(_infile_,'sect\sectd\') then do;
      putlog _infile_;
      _infile_ = transtrn(_infile_,'\sect\sectd',trimn(' '));
      putlog _infile_;
      end;
   put _infile_;
   run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2835i72444C143AE14FE1/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 11:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264542#M15657</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-04-18T11:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Break page proc report ods rtf/pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264548#M15658</link>
      <description>&lt;P&gt;thank you for this solution&amp;nbsp;&lt;BR /&gt;i have another&amp;nbsp;solution which consists to replace the byte(32) values by "^R'\pagebb'" as follow&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf; 
data test;
attrib a length=$50; 
     a= "aaaa"; output;
     a=strip("^R'\pagebb'") ; output;
     a= "bbbb"; output;
     a=strip("^R'\pagebb'") ; output;
     a= "cccc"; output;
     a=strip("^R'\pagebb'") ; output;
     a= "dddd"; output;
 run ;

 
 proc report data=test ;
 col a;
 run ;
 ods rtf close ; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;best regard&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 12:47:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264548#M15658</guid>
      <dc:creator>reznac</dc:creator>
      <dc:date>2016-04-18T12:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Break page proc report ods rtf/pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264555#M15659</link>
      <description>&lt;P&gt;I did not know about \pagebb. &amp;nbsp;But what about that weird blank cell on pages 2 and above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2836i88AC28811B933DD3/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264555#M15659</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-04-18T13:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Break page proc report ods rtf/pdf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264558#M15660</link>
      <description>&lt;P&gt;it is rtf tag to break page&amp;nbsp;&lt;/P&gt;&lt;P&gt;we can do that alse within ods rtf&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods rtf text="^R'\pagebb'"; we have the same result&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Break-page-proc-report-ods-rtf-pdf/m-p/264558#M15660</guid>
      <dc:creator>reznac</dc:creator>
      <dc:date>2016-04-18T13:33:18Z</dc:date>
    </item>
  </channel>
</rss>

