<?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 Break After Page not working in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-After-Page-not-working/m-p/566773#M22863</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm not sure why you have _LABEL_ and DUMMY and DUMMY1, and without data, no one can run your code. However, using SASHELP.CARS and simplifying your code somewhat, I isolated the code to essentially doing a PAGE with the BREAK statement for every value of MAKE in SASHELP.CARS (first I made a subset that was just 3 MAKES, Audi, BMW and Volvo). And, as you can see in the attached output, I do get correct page breaks from PROC REPORT when using the RTF destination:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="break_page.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30344iB90378F742AB6110/image-size/large?v=v2&amp;amp;px=999" role="button" title="break_page.png" alt="break_page.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't completely understand your data, so I realize that my use of SASHELP.CARS does not exactly mimic your data, but it does prove that PAGE works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 03:56:26 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-06-18T03:56:26Z</dc:date>
    <item>
      <title>Proc Report Break After Page not working</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-After-Page-not-working/m-p/566696#M22862</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS v9.4. i am creating a report for a complex table with all the subjects listing down with parameters wrapping around the pages and descriptive statistics at the bottom- attached is an example.&amp;nbsp; However, I am having trouble creating the page break at the right place. I have made a dummy variable that changes from number 1 to 2 after subject 1001-518, which is where I need the page to break and go to the next page. Instead of going to the next page, SAS is squeezing the parameters that should be on the next page into the same page. If someone can solve this issue it would be much appreciated. I have pasted the code below along with the table. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=final_1 nowd nocenter headline headskip missing split="~" list 
STYLE(REPORT)=[FRAME=above RULES=GROUP just=center bordercolor=black outputwidth =10 in cellpadding=2 cellspacing=1]
STYLE(HEADER)=[frame=below font_size=1 font_face="Courier New" just=c font_weight=bold cellpadding=2pt ]
STYLE(COLUMN)=[frame=below ];
columns _LABEL_ dummy dummy1 charcol1 - charcol16;

define _LABEL_     / ID "Subject ~ Number" style(column)=[just=c cellwidth= .55in ] style(header)=[just=c];
define dummy     / group order order=data "Subject ~ Number" style(column)=[just=c cellwidth= .4in ] style(header)=[just=c] noprint;
define dummy1     / group "Subject ~ Number" style(column)=[just=c cellwidth= .4in ] style(header)=[just=c] noprint;
define charcol1   /  "AUC^{sub 0-4h} ~ (h*ng/mL)" style(column)=[just=c cellwidth=.9in ] style(header)=[just=c];
define charcol2    /  "AUC^{sub 0-24h} ~ (h*ng/mL)" style(column)=[just=c cellwidth=.7in ] style(header)=[just=c];
define charcol3    /  "AUC^{sub 0-t} ~ (h*ng/mL)" style(column)=[just=c cellwidth=.7in ] style(header)=[just=c];
define charcol4    /  "C^{sub max} ~ (ng/mL)" style(column)=[just=c cellwidth=.6in ] style(header)=[just=c];
define charcol5    /  "C^{sub 10min} ~ (ng/mL)" style(column)=[just=c cellwidth=.6in ] style(header)=[just=c];
define charcol6    /  "C^{sub min} ~ (ng/mL)" style(column)=[just=c cellwidth=.6in ] style(header)=[just=c];
define charcol7    /  "T^{sub max} ~ (h)" style(column)=[just=c cellwidth=.65in ] style(header)=[just=c];
define charcol8    /  "t^{sub lag} ~ (h)" style(column)=[just=c cellwidth=.65in ] style(header)=[just=c];
define charcol9    /  "t^{sub last} ~ (h)" style(column)=[just=c cellwidth=.65in ] style(header)=[just=c];
define charcol10    /  "t^{sub 1/2} ~ (h)" style(column)=[just=c cellwidth=.65in ] style(header)=[just=c];
define charcol11   /  "^{unicode lambda}^{sub z} ~ (1/h)" style(column)=[just=c cellwidth=.65in ] style(header)=[just=c];
define charcol12   /  "V^{sub z}/F ~ (L)" style(column)=[just=c cellwidth=.65in ] style(header)=[just=c];
define charcol13   /  "DN-AUC^{sub 0-4h} ~ (h*ng)/mL/mg)" style(column)=[just=c cellwidth=.65in ] style(header)=[just=c];
define charcol14   /  "DN-AUC^{sub 0-24h} ~ (h*ng)/mL/mg)" style(column)=[just=c cellwidth=.65in ] style(header)=[just=c];
define charcol15    /  "DN-AUC^{sub 0-t} ~ (h*ng)/mL/mg)" style(column)=[just=c cellwidth=.65in ] style(header)=[just=c];
define charcol16   /  "DN-C^{sub max} ~ (ng/mL/mg)" style(column)=[just=c cellwidth=.65in ] style(header)=[just=c];


break after dummy/ skip page ;

compute dummy1;
	if dummy1 &amp;gt; 1 then call define(_row_,'style', 'style={bordertopcolor=black bordertopwidth=3}');
endcomp;

compute before dummy1;
	line " ";
endcomp;


run;

ods rtf close;
ODS LISTING;
title;
footnote;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Jun 2019 19:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-After-Page-not-working/m-p/566696#M22862</guid>
      <dc:creator>omka_</dc:creator>
      <dc:date>2019-06-17T19:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Break After Page not working</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-After-Page-not-working/m-p/566773#M22863</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I'm not sure why you have _LABEL_ and DUMMY and DUMMY1, and without data, no one can run your code. However, using SASHELP.CARS and simplifying your code somewhat, I isolated the code to essentially doing a PAGE with the BREAK statement for every value of MAKE in SASHELP.CARS (first I made a subset that was just 3 MAKES, Audi, BMW and Volvo). And, as you can see in the attached output, I do get correct page breaks from PROC REPORT when using the RTF destination:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="break_page.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30344iB90378F742AB6110/image-size/large?v=v2&amp;amp;px=999" role="button" title="break_page.png" alt="break_page.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't completely understand your data, so I realize that my use of SASHELP.CARS does not exactly mimic your data, but it does prove that PAGE works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 03:56:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-After-Page-not-working/m-p/566773#M22863</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-06-18T03:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Break After Page not working</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-After-Page-not-working/m-p/566897#M22864</link>
      <description>&lt;P&gt;Hi, I apologize for not attaching the data. It is attached now. _Label_ is the column which has the subject ID's (1001-501 to 1001-524), dummy is the variable to use for the page break, since I want the page to break after subject 1001-518, and dummy1 is used for the compute block to create the horizontal line that goes between the last subject and the descriptive statistics. Please try my data with the proc report and see if you can get the page break to work. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 14:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-After-Page-not-working/m-p/566897#M22864</guid>
      <dc:creator>omka_</dc:creator>
      <dc:date>2019-06-18T14:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Break After Page not working</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-After-Page-not-working/m-p/567689#M22879</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I finally had a chance to try your dataset. When I simplified your code and took out all the cellwidths and reduced the font and used the JOURNAL style, everything fit on 1 landscape page width and the page breaks worked as designed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The issue with your original code was twofold:&lt;/P&gt;
&lt;P&gt;1) your font was Courier for the Headers, and not specified as a particular font_size in PT size, but as a relative number, which allowed Word to assign a font size of 9.5 in my Word.&lt;/P&gt;
&lt;P&gt;2) you "over-controlled" the cellwidths so they didn't fit in 10" by reducing the font and removing the cellwidths (except for _LABEL_), that allowed ODS to determine the spacing to fit on one page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the simplified code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simplified_break_code.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30432iE555E0F4E74F5461/image-size/large?v=v2&amp;amp;px=999" role="button" title="simplified_break_code.png" alt="simplified_break_code.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And here's the output showing the page break:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simplified_break_output.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30433iA9A2C23C1FBF785B/image-size/large?v=v2&amp;amp;px=999" role="button" title="simplified_break_output.png" alt="simplified_break_output.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that using JOURNAL style automatically puts a line underneath the table on the end of each page, so I didn't need your code in the COMPUTE block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to highlight everything I changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 16:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Break-After-Page-not-working/m-p/567689#M22879</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-06-20T16:16:20Z</dc:date>
    </item>
  </channel>
</rss>

