<?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: Page breaks between 'ODS TEXT's in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-between-ODS-TEXT-s/m-p/807282#M25697</link>
    <description>&lt;P&gt;With RTF, &lt;STRONG&gt;not PDF,&lt;/STRONG&gt; you can use the Raw function to insert raw RTF codes, such as a new page (you'll have to look up the RTF codes on your own).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My experience with ODS TEXT is that without procedure output following it you often don't get any ODS TEXT result at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometime you have to use multiple ODS destinations with the equivalent of STARTPage= no; then Startpage=now. The two together force and end of page and then new page. I say equivalent because not all ODS destinations use the same approach to pagination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There have been a few times that it seemed like code using Escapechar and style elements with ODS TEXT behaved a little differently if the ODS ESCAPECHAR&amp;nbsp; statement came before the ODS destination statement, but I don't have an example to hand at the moment. You may want to try that if the ODS TEXT misbehaves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And instead of&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;ODS &amp;amp;ftype TEXT = " ";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you might want to try using the NEWLINE function in the previous statement&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 06:07:50 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-04-12T06:07:50Z</dc:date>
    <item>
      <title>Page breaks between 'ODS TEXT's</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-between-ODS-TEXT-s/m-p/807262#M25696</link>
      <description>&lt;P&gt;Supposedly I'm trying to spit out a page or two of ODS &amp;lt;RTF/PDF&amp;gt; TEXT stuffs before or after PROC REPORT/PRINT stuffs in my RTF/PDF output.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS LISTING CLOSE;

OPTIONS NODATE
            NONUMBER
            TOPMARGIN   =0.5IN
            LEFTMARGIN  =0.5IN
            RIGHTMARGIN =0.5IN
            BOTTOMMARGIN=0.5IN;

/*%let ftype=PDF;*/
%let ftype=RTF;

ods noptitle;

ODS &amp;amp;ftype FILE = "&amp;amp;base\test.&amp;amp;ftype" STYLE=BARRETTSBLUE;

ods proclabel='Frequencies';

ODS ESCAPECHAR = '^';
 
ODS &amp;amp;ftype TEXT = "^{STYLE[FONTSIZE=22 JUST=L fontweight=bold]THIS SHOULD BE PAGE 1}";
ODS &amp;amp;ftype TEXT = " ";
ODS &amp;amp;ftype TEXT = "^{STYLE[FONTSIZE=18 JUST=L](BLAH BLAH BLAH) 1}";

ods rtf startpage=now;

ODS &amp;amp;ftype TEXT = "^{STYLE[FONTSIZE=22 JUST=L fontweight=bold]THIS SHOULD BE PAGE 2}";
ODS &amp;amp;ftype TEXT = " ";
ODS &amp;amp;ftype TEXT = "^{STYLE[FONTSIZE=18 JUST=L](BLAH BLAH BLAH) 2}";

ods rtf close;

quit;
title;
ODS _all_ CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried using some suggestions from another posting on this forum but it seems that it doesn't work in this case as you can see below.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ODS RTF page break issue example.jpg" style="width: 261px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/70300i97DC1E3C6C53CB51/image-size/large?v=v2&amp;amp;px=999" role="button" title="ODS RTF page break issue example.jpg" alt="ODS RTF page break issue example.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any idea how I can split them to see 'THIS SHOULD BE PAGE 1" on page 1 and 'THIS SHOULD BE PAGE 2' on page 2 in my RTF or PDF output?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 00:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-between-ODS-TEXT-s/m-p/807262#M25696</guid>
      <dc:creator>BigPete</dc:creator>
      <dc:date>2022-04-12T00:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Page breaks between 'ODS TEXT's</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-between-ODS-TEXT-s/m-p/807282#M25697</link>
      <description>&lt;P&gt;With RTF, &lt;STRONG&gt;not PDF,&lt;/STRONG&gt; you can use the Raw function to insert raw RTF codes, such as a new page (you'll have to look up the RTF codes on your own).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My experience with ODS TEXT is that without procedure output following it you often don't get any ODS TEXT result at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometime you have to use multiple ODS destinations with the equivalent of STARTPage= no; then Startpage=now. The two together force and end of page and then new page. I say equivalent because not all ODS destinations use the same approach to pagination.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There have been a few times that it seemed like code using Escapechar and style elements with ODS TEXT behaved a little differently if the ODS ESCAPECHAR&amp;nbsp; statement came before the ODS destination statement, but I don't have an example to hand at the moment. You may want to try that if the ODS TEXT misbehaves.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And instead of&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;ODS &amp;amp;ftype TEXT = " ";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;you might want to try using the NEWLINE function in the previous statement&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 06:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-between-ODS-TEXT-s/m-p/807282#M25697</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-12T06:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Page breaks between 'ODS TEXT's</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-between-ODS-TEXT-s/m-p/807357#M25700</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file='c:\temp\want.rtf' style=journal;

ODS ESCAPECHAR = '^';
ODS rtf TEXT = "^{STYLE[FONTSIZE=22 JUST=L fontweight=bold]THIS SHOULD BE PAGE 1}";
ODS rtf TEXT = " ";
ODS rtf TEXT = "^{STYLE[FONTSIZE=18 JUST=L](BLAH BLAH BLAH) 1}";

data _x_;
 x='09'x;
run;
proc report data=_x_ nowd style={rules=none frame=void} noheader;
run;



proc report data=sashelp.class nowd;run;


proc report data=_x_ nowd style={rules=none frame=void} noheader;
run;


ODS rtf TEXT = "^{STYLE[FONTSIZE=22 JUST=L fontweight=bold]THIS SHOULD BE PAGE 2}";
ODS rtf TEXT = " ";
ODS rtf TEXT = "^{STYLE[FONTSIZE=18 JUST=L](BLAH BLAH BLAH) 2}";



proc report data=sashelp.class nowd;run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Apr 2022 12:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-between-ODS-TEXT-s/m-p/807357#M25700</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-04-12T12:02:02Z</dc:date>
    </item>
  </channel>
</rss>

