<?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: Removing the page breaks after each PROC in ODS WORD in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733803#M228653</link>
    <description>&lt;P&gt;Thank you, &lt;SPAN&gt;ballardw.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;That is it then! When I add: options(STARTPAGE="NO"), SAS gives me this warning message:&lt;/P&gt;
&lt;P&gt;WARNING: Option "startpage" not recognized. This option will be ignored.&lt;BR /&gt;WARNING: The ODS WORD destination is preproduction in this release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will create RTF and then convert it to WORD.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 15:28:30 GMT</pubDate>
    <dc:creator>Emma_at_SAS</dc:creator>
    <dc:date>2021-04-14T15:28:30Z</dc:date>
    <item>
      <title>Removing the page breaks after each PROC in ODS WORD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733791#M228644</link>
      <description>&lt;P&gt;How may I remove the page breaks after each PROC?&lt;/P&gt;
&lt;P&gt;I found this for ODS RTF but did not find a similar resource for ODS WORD&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/wuss/2014/51_Final_Paper_PDF.pdf" target="_blank"&gt;https://www.lexjansen.com/wuss/2014/51_Final_Paper_PDF.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 15:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733791#M228644</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2021-04-14T15:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the page breaks after each PROC in ODS WORD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733798#M228648</link>
      <description>&lt;P&gt;The first place to start would likely be the STARTPAGE setting in your ODS Word.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/odsug/p10mxeb6wxqfjgn1p5u0w4t8qf20.htm#p1moj1npfwwihsn1rfpvpmefbpcn" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/odsug/p10mxeb6wxqfjgn1p5u0w4t8qf20.htm#p1moj1npfwwihsn1rfpvpmefbpcn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Set STARTPAGE=NO and page breaks shouldn't be added.&lt;/P&gt;
&lt;P&gt;Lots of caveats though as Word is still preproduction which means that features can be a tad unpredictable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really want the control then use ods rtf and then convert the rtf document to Word.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 15:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733798#M228648</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-14T15:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the page breaks after each PROC in ODS WORD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733803#M228653</link>
      <description>&lt;P&gt;Thank you, &lt;SPAN&gt;ballardw.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;That is it then! When I add: options(STARTPAGE="NO"), SAS gives me this warning message:&lt;/P&gt;
&lt;P&gt;WARNING: Option "startpage" not recognized. This option will be ignored.&lt;BR /&gt;WARNING: The ODS WORD destination is preproduction in this release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will create RTF and then convert it to WORD.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 15:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733803#M228653</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2021-04-14T15:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the page breaks after each PROC in ODS WORD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733811#M228658</link>
      <description>&lt;P&gt;You really need to post your code in the future, it'll help us answer your questions faster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Startpage is not listed under the &lt;STRONG&gt;options&lt;/STRONG&gt; in the ODS WORD documentation &lt;STRONG&gt;so it doesn't go in the options parenthesis&lt;/STRONG&gt;, it stays outside. This generates my file with no page breaks and a single page docx file with both tables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods word file='/home/fkhurshed/Demo1/example.docx' startpage=no ;

proc print data=sashelp.class (obs=3);
run;

proc print data=sashelp.air(obs=5);
run;

ods word close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note separate entries;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;OPTIONS (&amp;lt; suboptions&amp;gt;)&lt;/STRONG&gt;&lt;/FONT&gt;
Specify destination-specific suboptions

SASDATE
Insert the standard SAS date in the document in place of the default Word date and time field

SELECT selection(s) | ALL | NONE
Select output objects for the destination.

SHOW
Write to the SAS Log the current selection or exclusion list for the destination

&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;STARTPAGE= YES | NO | NOW | BYGROUP&lt;/STRONG&gt;&lt;/FONT&gt;
Control the insertion of new pages&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/84351"&gt;@Emma_at_SAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you, &lt;SPAN&gt;ballardw.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;That is it then! When I add: options(STARTPAGE="NO"), SAS gives me this warning message:&lt;/P&gt;
&lt;P&gt;WARNING: Option "startpage" not recognized. This option will be ignored.&lt;BR /&gt;WARNING: The ODS WORD destination is preproduction in this release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will create RTF and then convert it to WORD.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 16:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733811#M228658</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-14T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the page breaks after each PROC in ODS WORD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733816#M228662</link>
      <description>&lt;P&gt;Thanks, Reeza! Yes, that works!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have the option to change/edit the solution for this question. This would be misleading for future visitors! Any suggestions for that?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 16:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733816#M228662</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2021-04-14T16:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the page breaks after each PROC in ODS WORD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733832#M228667</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/84351"&gt;@Emma_at_SAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I do not have the option to change/edit the solution for this question.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/84351"&gt;@Emma_at_SAS&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You can select a different post&amp;nbsp;as the solution after clicking&amp;nbsp;"Not the Solution" in the option menu (see icon below) of the current solution.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="show_option_menu.png" style="width: 133px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57672i5799C3BBB7BCD6F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="show_option_menu.png" alt="show_option_menu.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 16:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733832#M228667</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-04-14T16:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the page breaks after each PROC in ODS WORD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733900#M228683</link>
      <description>Thank you, FreelanceReinhard!</description>
      <pubDate>Wed, 14 Apr 2021 19:38:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/733900#M228683</guid>
      <dc:creator>Emma_at_SAS</dc:creator>
      <dc:date>2021-04-14T19:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the page breaks after each PROC in ODS WORD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/763966#M241957</link>
      <description>&lt;P&gt;I doubt this changes the solution (which is an imperfect one for me, as I'm limited to DDE for automation and can only save RTF as DOC and I really want DOCX), but this method fails as soon as the second table crosses a page break:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ods word file='example.docx' startpage=no ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc print data=sashelp.class (obs=3);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;proc print data=sashelp.gcstate(obs=35);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ods word close;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;My output from this, running SAS v9.4M6, puts the first table on page 1, an empty page 2, and the second table on pages 3 and 4.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 19:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/763966#M241957</guid>
      <dc:creator>ErikDilts</dc:creator>
      <dc:date>2021-08-25T19:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Removing the page breaks after each PROC in ODS WORD</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/763969#M241958</link>
      <description>You're aware that ODS WORD is still pre-production?</description>
      <pubDate>Wed, 25 Aug 2021 19:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-the-page-breaks-after-each-PROC-in-ODS-WORD/m-p/763969#M241958</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-08-25T19:19:09Z</dc:date>
    </item>
  </channel>
</rss>

