<?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: ods pdf applying pagebreaks in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-pdf-applying-pagebreaks/m-p/29146#M4456</link>
    <description>Hi:&lt;BR /&gt;
  I'm not exactly sure what you mean. For example, if you are using ODS HTML, there are no page number tags defined in the HTML specification -- so there's no way to have page numbers in an ODS HTML document. &lt;BR /&gt;
&lt;BR /&gt;
  On the other hand, ODS RTF and ODS PDF are "paged" destinations -- so report output sent to those destinations would have the possibility of page numbers, however, the page number belongs to the "page" -- and as such, would not be appropriate to have a page number -inside- a graph image or a page number -inside- a report table.&lt;BR /&gt;
 &lt;BR /&gt;
  However, there is a STARTPAGE=NOW option (for RTF and PDF) that allows you to instruct ODS to insert an explicit page break into report output. STARTPAGE=NOW could only be specified between procedure steps ---- it would not be appropriate to have the command anyplace but between procedures.&lt;BR /&gt;
 &lt;BR /&gt;
For me, the code below produces a 2 page document with a page break before the PROC MEANS output.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
options nodate number pageno=1 center;&lt;BR /&gt;
ods rtf file='c:\temp\use_sp.rtf' startpage=no;&lt;BR /&gt;
ods pdf file='c:\temp\use_sp.pdf' startpage=no;&lt;BR /&gt;
       &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
run;&lt;BR /&gt;
                        &lt;BR /&gt;
proc freq data=sashelp.class;&lt;BR /&gt;
  tables sex;&lt;BR /&gt;
run;&lt;BR /&gt;
                       &lt;BR /&gt;
proc print data=sashelp.cars(obs=3);&lt;BR /&gt;
var Make Model Type Origin DriveTrain MSRP Invoice;&lt;BR /&gt;
run;&lt;BR /&gt;
                    &lt;BR /&gt;
goptions reset=all hsize=6in vsize=3in;&lt;BR /&gt;
proc gplot data=sashelp.class;&lt;BR /&gt;
  plot height*age;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
                                 &lt;BR /&gt;
ods rtf startpage=now;&lt;BR /&gt;
ods pdf startpage=now;&lt;BR /&gt;
                         &lt;BR /&gt;
proc means data=sashelp.class;&lt;BR /&gt;
var height;&lt;BR /&gt;
class age;&lt;BR /&gt;
run;&lt;BR /&gt;
                   &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Fri, 05 Nov 2010 07:12:44 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-11-05T07:12:44Z</dc:date>
    <item>
      <title>ods pdf applying pagebreaks</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-pdf-applying-pagebreaks/m-p/29145#M4455</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
I'm manually adjusting the height of one of my graphs, as a result the tables which are next to them can come on to the same page (which I dont want happening).&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Is it possible to specify pagebreaks (similar to word) OR specify the page number for a proc gplot?&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Sachin</description>
      <pubDate>Fri, 05 Nov 2010 02:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-pdf-applying-pagebreaks/m-p/29145#M4455</guid>
      <dc:creator>SachinRuk</dc:creator>
      <dc:date>2010-11-05T02:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: ods pdf applying pagebreaks</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-pdf-applying-pagebreaks/m-p/29146#M4456</link>
      <description>Hi:&lt;BR /&gt;
  I'm not exactly sure what you mean. For example, if you are using ODS HTML, there are no page number tags defined in the HTML specification -- so there's no way to have page numbers in an ODS HTML document. &lt;BR /&gt;
&lt;BR /&gt;
  On the other hand, ODS RTF and ODS PDF are "paged" destinations -- so report output sent to those destinations would have the possibility of page numbers, however, the page number belongs to the "page" -- and as such, would not be appropriate to have a page number -inside- a graph image or a page number -inside- a report table.&lt;BR /&gt;
 &lt;BR /&gt;
  However, there is a STARTPAGE=NOW option (for RTF and PDF) that allows you to instruct ODS to insert an explicit page break into report output. STARTPAGE=NOW could only be specified between procedure steps ---- it would not be appropriate to have the command anyplace but between procedures.&lt;BR /&gt;
 &lt;BR /&gt;
For me, the code below produces a 2 page document with a page break before the PROC MEANS output.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
options nodate number pageno=1 center;&lt;BR /&gt;
ods rtf file='c:\temp\use_sp.rtf' startpage=no;&lt;BR /&gt;
ods pdf file='c:\temp\use_sp.pdf' startpage=no;&lt;BR /&gt;
       &lt;BR /&gt;
proc print data=sashelp.class(obs=3);&lt;BR /&gt;
run;&lt;BR /&gt;
                        &lt;BR /&gt;
proc freq data=sashelp.class;&lt;BR /&gt;
  tables sex;&lt;BR /&gt;
run;&lt;BR /&gt;
                       &lt;BR /&gt;
proc print data=sashelp.cars(obs=3);&lt;BR /&gt;
var Make Model Type Origin DriveTrain MSRP Invoice;&lt;BR /&gt;
run;&lt;BR /&gt;
                    &lt;BR /&gt;
goptions reset=all hsize=6in vsize=3in;&lt;BR /&gt;
proc gplot data=sashelp.class;&lt;BR /&gt;
  plot height*age;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;&lt;BR /&gt;
                                 &lt;BR /&gt;
ods rtf startpage=now;&lt;BR /&gt;
ods pdf startpage=now;&lt;BR /&gt;
                         &lt;BR /&gt;
proc means data=sashelp.class;&lt;BR /&gt;
var height;&lt;BR /&gt;
class age;&lt;BR /&gt;
run;&lt;BR /&gt;
                   &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 05 Nov 2010 07:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-pdf-applying-pagebreaks/m-p/29146#M4456</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-05T07:12:44Z</dc:date>
    </item>
  </channel>
</rss>

