<?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: How do I add page breaks in ODS PDF output when using &amp;quot;startpage=no&amp;quot;? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-page-breaks-in-ODS-PDF-output-when-using-quot/m-p/721058#M223408</link>
    <description>&lt;P&gt;Use the NOW value for the option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=odsug&amp;amp;docsetTarget=n0mc4eolqoned0n16oy88mpj0e4g.htm&amp;amp;locale=en#n0xa1ncld1zq90n18j1f72772xc0" target="_self"&gt;7th example in the documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods html close;   /* Not needed if using SAS Studio */

options nodate;

ods pdf file="file.pdf" notoc &lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;startpage=no&lt;/STRONG&gt; &lt;/FONT&gt;;


title "Top of the First Page Title";
footnote "Bottom of the first page footnote";


proc report data=sashelp.cars ;
   col origin enginesize mpg_city;
   where mpg_highway gt 45;
run;


title;
footnote;

ods graphics on / reset noborder;
   proc sgplot data=sashelp.cars;
    where mpg_highway gt 45;
    scatter x=enginesize y=mpg_city;
  run;

&lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;ods pdf startpage=now;&lt;/STRONG&gt;&lt;/FONT&gt;

title "Top of the Second Page Title";
footnote "Bottom of the second page footnote";


proc report data=sashelp.cars ;
   col make model type;
   where mpg_highway gt 45;
run;



title;
footnote;

proc sgplot data=sashelp.cars;
   where mpg_highway gt 45;
   scatter x=enginesize y=mpg_highway;
run;



ods pdf close;   /* Not needed if using SAS Studio */
ods html;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/279654"&gt;@megsredl&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to create a PDF report containing a lot of small tables and accompanying text. I can fit more than one table per page, so I am using "startpage=no" so multiple tables appear on a page, otherwise the report would be really long. However, tables are being split across two pages when they can't fit on the current page. I would like to start a new page if the table cannot fit on the current page, and ideally start a new page for different sections of the report. How do you add page breaks when using startpage=no?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if my code is necessary here, but here is my code to open the file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar="^";
ods pdf file="title.pdf" startpage=no;
	options nodate;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you for the help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 20:51:36 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-02-22T20:51:36Z</dc:date>
    <item>
      <title>How do I add page breaks in ODS PDF output when using "startpage=no"?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-page-breaks-in-ODS-PDF-output-when-using-quot/m-p/721056#M223407</link>
      <description>&lt;P&gt;I'm trying to create a PDF report containing a lot of small tables and accompanying text. I can fit more than one table per page, so I am using "startpage=no" so multiple tables appear on a page, otherwise the report would be really long. However, tables are being split across two pages when they can't fit on the current page. I would like to start a new page if the table cannot fit on the current page, and ideally start a new page for different sections of the report. How do you add page breaks when using startpage=no?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if my code is necessary here, but here is my code to open the file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar="^";
ods pdf file="title.pdf" startpage=no;
	options nodate;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 20:39:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-page-breaks-in-ODS-PDF-output-when-using-quot/m-p/721056#M223407</guid>
      <dc:creator>megsredl</dc:creator>
      <dc:date>2021-02-22T20:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add page breaks in ODS PDF output when using "startpage=no"?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-page-breaks-in-ODS-PDF-output-when-using-quot/m-p/721058#M223408</link>
      <description>&lt;P&gt;Use the NOW value for the option.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=odsug&amp;amp;docsetTarget=n0mc4eolqoned0n16oy88mpj0e4g.htm&amp;amp;locale=en#n0xa1ncld1zq90n18j1f72772xc0" target="_self"&gt;7th example in the documentation&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods html close;   /* Not needed if using SAS Studio */

options nodate;

ods pdf file="file.pdf" notoc &lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;startpage=no&lt;/STRONG&gt; &lt;/FONT&gt;;


title "Top of the First Page Title";
footnote "Bottom of the first page footnote";


proc report data=sashelp.cars ;
   col origin enginesize mpg_city;
   where mpg_highway gt 45;
run;


title;
footnote;

ods graphics on / reset noborder;
   proc sgplot data=sashelp.cars;
    where mpg_highway gt 45;
    scatter x=enginesize y=mpg_city;
  run;

&lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;ods pdf startpage=now;&lt;/STRONG&gt;&lt;/FONT&gt;

title "Top of the Second Page Title";
footnote "Bottom of the second page footnote";


proc report data=sashelp.cars ;
   col make model type;
   where mpg_highway gt 45;
run;



title;
footnote;

proc sgplot data=sashelp.cars;
   where mpg_highway gt 45;
   scatter x=enginesize y=mpg_highway;
run;



ods pdf close;   /* Not needed if using SAS Studio */
ods html;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/279654"&gt;@megsredl&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm trying to create a PDF report containing a lot of small tables and accompanying text. I can fit more than one table per page, so I am using "startpage=no" so multiple tables appear on a page, otherwise the report would be really long. However, tables are being split across two pages when they can't fit on the current page. I would like to start a new page if the table cannot fit on the current page, and ideally start a new page for different sections of the report. How do you add page breaks when using startpage=no?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure if my code is necessary here, but here is my code to open the file:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar="^";
ods pdf file="title.pdf" startpage=no;
	options nodate;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you for the help!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 20:51:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-page-breaks-in-ODS-PDF-output-when-using-quot/m-p/721058#M223408</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-02-22T20:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add page breaks in ODS PDF output when using "startpage=no"?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-page-breaks-in-ODS-PDF-output-when-using-quot/m-p/721060#M223410</link>
      <description>Thank you!</description>
      <pubDate>Mon, 22 Feb 2021 20:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-add-page-breaks-in-ODS-PDF-output-when-using-quot/m-p/721060#M223410</guid>
      <dc:creator>megsredl</dc:creator>
      <dc:date>2021-02-22T20:54:17Z</dc:date>
    </item>
  </channel>
</rss>

