<?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: Print Three datasets in 2 pages. First page 2 datasets second page 1 dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Print-Three-datasets-in-2-pages-First-page-2-datasets-second/m-p/689878#M209763</link>
    <description>Thanks</description>
    <pubDate>Thu, 08 Oct 2020 06:15:58 GMT</pubDate>
    <dc:creator>csa</dc:creator>
    <dc:date>2020-10-08T06:15:58Z</dc:date>
    <item>
      <title>Print Three datasets in 2 pages. First page 2 datasets second page 1 dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-Three-datasets-in-2-pages-First-page-2-datasets-second/m-p/689805#M209718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to generate following output, I have tried various ways but no luck. Could you please help me out how to move the highlighted table to second page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="csa_0-1602121667016.png" style="width: 649px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50332i3502A827A13B0259/image-dimensions/649x339?v=v2" width="649" height="339" role="button" title="csa_0-1602121667016.png" alt="csa_0-1602121667016.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The highlighted in yellow color table should be moved to second page with separate title 'All'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define style styles.tabstyle;&lt;BR /&gt;parent=styles.rtf;&lt;BR /&gt;style table from table /&lt;BR /&gt;cellpadding = 1pt;&lt;BR /&gt;style body from body /&lt;BR /&gt;leftmargin=1in&lt;BR /&gt;rightmargin=1in&lt;BR /&gt;topmargin=1.2in&lt;BR /&gt;bottommargin=1in;&lt;BR /&gt;style header from header /&lt;BR /&gt;frame=void&lt;BR /&gt;rules=groups&lt;BR /&gt;font_weight=medium&lt;BR /&gt;bordertopstyle=solid bordertopwidth=0.1px bordertopcolor=black&lt;BR /&gt;borderbottomstyle=solid borderbottomwidth=0.1px borderbottomcolor=black;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title;&lt;BR /&gt;footnote;&lt;BR /&gt;goptions reset=all;&lt;BR /&gt;options orientation=&amp;amp;lineop_ missing='';&lt;BR /&gt;ods noresults;&lt;BR /&gt;ods listing close;&lt;BR /&gt;ods rtf file="C:\Local\chk.rtf" notoc_data style=styles.tabstyle startpage=no ;&lt;BR /&gt;ods escapechar="^";&lt;/P&gt;&lt;P&gt;title1 j=left f=timesnewroman h=10pt "XYX";&lt;BR /&gt;title3 j=left "Grades and Sports";&lt;BR /&gt;proc print data=a width=full label split='~' style(table)=[vjust=middle just=center]&lt;BR /&gt;style(header)=[font_size=10pt font_weight=medium just=center]&lt;BR /&gt;style(column)=[font_size=10pt font_weight=medium just=left] noobs;&lt;/P&gt;&lt;P&gt;var Name Science Mathematics History Geography;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title;&lt;BR /&gt;footnote;&lt;/P&gt;&lt;P&gt;proc print data=b width=full label split='~' style(table)=[vjust=middle just=center]&lt;BR /&gt;style(header)=[font_size=10pt font_weight=medium just=center]&lt;BR /&gt;style(column)=[font_size=10pt font_weight=medium just=left] noobs;&lt;/P&gt;&lt;P&gt;var Name Tennis Baseball Basketball Hockey Football;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;title3 j=left f=timesnewroman h=10pt "All";&lt;/P&gt;&lt;P&gt;proc print data = c width=full label split='~' style(table)=[vjust=middle just=center]&lt;BR /&gt;style(header)=[font_size=10pt font_weight=medium just=center]&lt;BR /&gt;style(column)=[font_size=10pt font_weight=medium just=left] noobs;&lt;/P&gt;&lt;P&gt;var Rank Name Tennis Baseball Basketball Hockey Science Mathematics History Geography;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;BR /&gt;ods listing;&lt;BR /&gt;ods noresults;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 01:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-Three-datasets-in-2-pages-First-page-2-datasets-second/m-p/689805#M209718</guid>
      <dc:creator>csa</dc:creator>
      <dc:date>2020-10-08T01:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Print Three datasets in 2 pages. First page 2 datasets second page 1 dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-Three-datasets-in-2-pages-First-page-2-datasets-second/m-p/689856#M209752</link>
      <description>&lt;P&gt;Almost there. You can use ODS RTF, or other destinations,&amp;nbsp; without providing a file to modify ODS options like the startpage setting in the middle of the document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods rtf file="C:\Local\chk.rtf" notoc_data style=styles.tabstyle startpage=no ;
ods escapechar="^";

title1 j=left f=timesnewroman h=10pt "XYX";
title3 j=left "Grades and Sports";
proc print data=a width=full label split='~' style(table)=[vjust=middle just=center]
style(header)=[font_size=10pt font_weight=medium just=center]
style(column)=[font_size=10pt font_weight=medium just=left] noobs;

var Name Science Mathematics History Geography;
run;

title;
footnote;

proc print data=b width=full label split='~' style(table)=[vjust=middle just=center]
style(header)=[font_size=10pt font_weight=medium just=center]
style(column)=[font_size=10pt font_weight=medium just=left] noobs;

var Name Tennis Baseball Basketball Hockey Football;
run;

&lt;FONT size="5" color="#FF00FF"&gt;&lt;STRONG&gt;ods rtf startpage=NOW;&lt;/STRONG&gt;&lt;/FONT&gt;
title3 j=left f=timesnewroman h=10pt "All";

proc print data = c width=full label split='~' style(table)=[vjust=middle just=center]
style(header)=[font_size=10pt font_weight=medium just=center]
style(column)=[font_size=10pt font_weight=medium just=left] noobs;

var Rank Name Tennis Baseball Basketball Hockey Science Mathematics History Geography;
run;

ods rtf close;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Oct 2020 04:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-Three-datasets-in-2-pages-First-page-2-datasets-second/m-p/689856#M209752</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-08T04:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Print Three datasets in 2 pages. First page 2 datasets second page 1 dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-Three-datasets-in-2-pages-First-page-2-datasets-second/m-p/689859#M209754</link>
      <description>&lt;P&gt;Prior to the third proc print, issue an&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods startpage=now;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;statement.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 04:18:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-Three-datasets-in-2-pages-First-page-2-datasets-second/m-p/689859#M209754</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-10-08T04:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Print Three datasets in 2 pages. First page 2 datasets second page 1 dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Print-Three-datasets-in-2-pages-First-page-2-datasets-second/m-p/689878#M209763</link>
      <description>Thanks</description>
      <pubDate>Thu, 08 Oct 2020 06:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Print-Three-datasets-in-2-pages-First-page-2-datasets-second/m-p/689878#M209763</guid>
      <dc:creator>csa</dc:creator>
      <dc:date>2020-10-08T06:15:58Z</dc:date>
    </item>
  </channel>
</rss>

