<?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 Keep groups together in REPORT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-groups-together-in-REPORT/m-p/56933#M6870</link>
    <description>When using PROC REPORT with ODS PDF, is there an option to keep groups together, where possible on one page?&lt;BR /&gt;
&lt;BR /&gt;
For instance, if I have a group with 10 rows, and it starts two rows from the bottom, I would like it to no print any of that group on the first page and instead start a fresh page for the group.&lt;BR /&gt;
&lt;BR /&gt;
I've done this manually before by creating a noprint dummy variable to use 'break / page' with, but I am looking for a builtin method so that I don't have to massage the data each time I do this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Michael</description>
    <pubDate>Fri, 24 Oct 2008 20:59:40 GMT</pubDate>
    <dc:creator>Kastchei</dc:creator>
    <dc:date>2008-10-24T20:59:40Z</dc:date>
    <item>
      <title>Keep groups together in REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-groups-together-in-REPORT/m-p/56933#M6870</link>
      <description>When using PROC REPORT with ODS PDF, is there an option to keep groups together, where possible on one page?&lt;BR /&gt;
&lt;BR /&gt;
For instance, if I have a group with 10 rows, and it starts two rows from the bottom, I would like it to no print any of that group on the first page and instead start a fresh page for the group.&lt;BR /&gt;
&lt;BR /&gt;
I've done this manually before by creating a noprint dummy variable to use 'break / page' with, but I am looking for a builtin method so that I don't have to massage the data each time I do this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Michael</description>
      <pubDate>Fri, 24 Oct 2008 20:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-groups-together-in-REPORT/m-p/56933#M6870</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2008-10-24T20:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Keep groups together in REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-groups-together-in-REPORT/m-p/56934#M6871</link>
      <description>Hi:&lt;BR /&gt;
  With the BREAK statement (to be used with an ORDER or GROUP item), you can use the PAGE option. That will ensure that every group starts on its own page.&lt;BR /&gt;
                &lt;BR /&gt;
  For example, see the program below. There may be times when you need to set a dummy variable for page breaking. I find I usually need to do that when there's some arbitrary order or page breaking that I want to impose on a report. If you want to get the page breaking without the summary line, you'd could use this BREAK statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
BREAK AFTER REGION / PAGE;[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
cynthia&lt;BR /&gt;
 &lt;BR /&gt;
options nodate number orientation=portrait;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
               &lt;BR /&gt;
ods pdf file='c:\temp\Asia_Canada.pdf';&lt;BR /&gt;
              &lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  where region in ('Asia', 'Canada');&lt;BR /&gt;
  column region product subsidiary sales;&lt;BR /&gt;
  define region / group;&lt;BR /&gt;
  define product / group;&lt;BR /&gt;
  define subsidiary / order;&lt;BR /&gt;
  define sales /sum;&lt;BR /&gt;
  break after region / summarize page;&lt;BR /&gt;
run;&lt;BR /&gt;
                &lt;BR /&gt;
ods pdf close;</description>
      <pubDate>Sat, 25 Oct 2008 02:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Keep-groups-together-in-REPORT/m-p/56934#M6871</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-10-25T02:53:50Z</dc:date>
    </item>
  </channel>
</rss>

