<?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: proc report- how break pages with two proc reports in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-report-how-break-pages-with-two-proc-reports/m-p/711918#M219376</link>
    <description>&lt;P&gt;You need to clearly define what you mean by "page break the two parts". As in show an example of what the result looks like. You can make that manually with example columns and dummy data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are about a half-dozen ways I might interpret that phrase and almost certainly most if not all would not be what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If at all practical it is a good idea to include data. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box opened using the &amp;lt;/&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
    <pubDate>Sun, 17 Jan 2021 04:15:43 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-01-17T04:15:43Z</dc:date>
    <item>
      <title>proc report- how break pages with two proc reports</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-how-break-pages-with-two-proc-reports/m-p/711872#M219351</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create one rtf output using proc report.&amp;nbsp; There are two proc reports (part 1 and part 2) and I need to page break the two parts. Please help, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; ods listing close;&lt;BR /&gt;ods rtf file = "test .rtf" ; &lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;title1='part 1';
proc report data = part1;
	  columns ordx1 aebodsys total1  ;&lt;BR /&gt;	  define ordx1     / descending order     order=internal noprint;
	  define aebodsys  / order order=internal noprint;
	  define total1  / descending order  order=internal noprint;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;title1='part 2';
proc report data = part2  ;
	  columns ordx1 aebodsys total1  ;&lt;BR /&gt;	  define ordx1     / descending order     order=internal noprint;
	  define aebodsys  / order order=internal noprint;
	  define total1  / descending order  order=internal noprint;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ods rtf close;&lt;BR /&gt;ods listing;&lt;BR /&gt;
&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 18:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-how-break-pages-with-two-proc-reports/m-p/711872#M219351</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2021-01-16T18:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: proc report- how break pages with two proc reports</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-how-break-pages-with-two-proc-reports/m-p/711918#M219376</link>
      <description>&lt;P&gt;You need to clearly define what you mean by "page break the two parts". As in show an example of what the result looks like. You can make that manually with example columns and dummy data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are about a half-dozen ways I might interpret that phrase and almost certainly most if not all would not be what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If at all practical it is a good idea to include data. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box opened using the &amp;lt;/&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 04:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-how-break-pages-with-two-proc-reports/m-p/711918#M219376</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-17T04:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc report- how break pages with two proc reports</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-how-break-pages-with-two-proc-reports/m-p/711919#M219377</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;ods rtf file = "C:\Users\My\Documents\test.rtf" ; 
title1='part 1';
proc report data = sashelp.class;
	  where sex='M';
	  columns name sex height  ;	  
run;

/*start in a new page;*/
ods startpage=yes;
title2='part 2';
proc report data = sashelp.class;
	  where sex='F';
	  columns name sex height  ;	  
run;
ods rtf close;ods listing;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Jan 2021 05:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-how-break-pages-with-two-proc-reports/m-p/711919#M219377</guid>
      <dc:creator>blueskyxyz</dc:creator>
      <dc:date>2021-01-17T05:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc report- how break pages with two proc reports</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-report-how-break-pages-with-two-proc-reports/m-p/711972#M219401</link>
      <description>Hi:&lt;BR /&gt;  By default, every procedure should start a newpage. I am confused though because your first PROC REPORT has all the variables listed as NOPRINT and it appears that your second PROC REPORT uses NOPRINT for all variables too. I would be very curious about what your intention is with the code you've posted. Why are you using NOPRINT for EVERY variable? What output are you getting?&lt;BR /&gt;Cynthia.</description>
      <pubDate>Sun, 17 Jan 2021 16:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-report-how-break-pages-with-two-proc-reports/m-p/711972#M219401</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-01-17T16:48:53Z</dc:date>
    </item>
  </channel>
</rss>

