<?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 PROC REPORT: force page break in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-force-page-break/m-p/43450#M11352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you are only using the SKIP variable for your forced page break, try this combination of BREAK/RBREAK statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK AFTER gr_age&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; SUMMARIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;break &lt;STRONG&gt;before &lt;/STRONG&gt;skip / page ; &lt;BR /&gt;RBREAK AFTER&amp;nbsp; /&amp;nbsp; SUMMARIZE&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that you will get the grand total placed on the last page if you do a BREAK &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;BEFORE &lt;/STRONG&gt;&lt;/SPAN&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I would recommend that you make the GR_AGE variable an ORDER variable instead of a GROUP usage variable. You should be seeing this in the log: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: Groups are not created because the usage of xxxxxx is DISPLAY. To avoid this note, change all GROUP variables to ORDER variables.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2011 15:03:49 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2011-11-09T15:03:49Z</dc:date>
    <item>
      <title>PROC REPORT: force page break</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-force-page-break/m-p/43447#M11349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;how/can we force a page break in a COMPUTE BLOCK based on a variable like in DATA STEP programming using PUT _PAGE_ ??&lt;/P&gt;&lt;P&gt;I do NOT mean :&lt;/P&gt;&lt;P&gt;﻿compute before xxxx _page_;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Herman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 11:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-force-page-break/m-p/43447#M11349</guid>
      <dc:creator>Jaheuk</dc:creator>
      <dc:date>2011-11-08T11:04:53Z</dc:date>
    </item>
    <item>
      <title>PROC REPORT: force page break</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-force-page-break/m-p/43448#M11350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A page break in proc report is achieve usually by break after/before. &lt;/P&gt;&lt;P&gt;You can not make a page break in compute block. But you can make a variable to break at appropriate place&lt;/P&gt;&lt;P&gt;by using break after/page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 02:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-force-page-break/m-p/43448#M11350</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-11-09T02:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT: force page break</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-force-page-break/m-p/43449#M11351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;indeed, this seems to be the only solution and it works!! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however, the reporting total also skips to a new page ???&lt;/P&gt;&lt;P&gt;that's the only issue I have so far &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;quick example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title; &lt;BR /&gt;ODS LISTING CLOSE;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;ODS PDF NOTOC FILE='c:\temp\mypdf.pdf'&amp;nbsp; STYLE=SASWEB NOTOC;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;proc sort data=sashelp.class;&lt;BR /&gt;by age;&lt;BR /&gt;run; &lt;BR /&gt;data WORK;&lt;BR /&gt;set sashelp.class;&lt;BR /&gt;if age &amp;lt; 13 then skip=0;&lt;BR /&gt;else skip=1;&lt;BR /&gt;gr_age=put(age,z4.) ;&lt;BR /&gt;run; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc report data=WORK&amp;nbsp; nowd;&lt;BR /&gt;column skip name sex gr_age age ;&lt;BR /&gt;define skip / noprint group;&lt;BR /&gt;define name / display;&lt;BR /&gt;define sex&amp;nbsp; / display;&lt;BR /&gt;define gr_age / noprint group;&lt;BR /&gt;define age / analysis ; &lt;/P&gt;&lt;P&gt;BREAK AFTER gr_age&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; SUMMARIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;break after skip / page ; &lt;BR /&gt;RBREAK AFTER&amp;nbsp; /&amp;nbsp; SUMMARIZE&amp;nbsp; ; &lt;BR /&gt;quit; &lt;BR /&gt;ODS PDF&amp;nbsp; CLOSE ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;ODS LISTING ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 14:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-force-page-break/m-p/43449#M11351</guid>
      <dc:creator>Jaheuk</dc:creator>
      <dc:date>2011-11-09T14:37:23Z</dc:date>
    </item>
    <item>
      <title>PROC REPORT: force page break</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-force-page-break/m-p/43450#M11352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you are only using the SKIP variable for your forced page break, try this combination of BREAK/RBREAK statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BREAK AFTER gr_age&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp; SUMMARIZE&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;break &lt;STRONG&gt;before &lt;/STRONG&gt;skip / page ; &lt;BR /&gt;RBREAK AFTER&amp;nbsp; /&amp;nbsp; SUMMARIZE&amp;nbsp; ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that you will get the grand total placed on the last page if you do a BREAK &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;BEFORE &lt;/STRONG&gt;&lt;/SPAN&gt;SKIP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I would recommend that you make the GR_AGE variable an ORDER variable instead of a GROUP usage variable. You should be seeing this in the log: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NOTE: Groups are not created because the usage of xxxxxx is DISPLAY. To avoid this note, change all GROUP variables to ORDER variables.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 15:03:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-REPORT-force-page-break/m-p/43450#M11352</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-11-09T15:03:49Z</dc:date>
    </item>
  </channel>
</rss>

