<?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 page break after not working in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794781#M254858</link>
    <description>Since you are using "by  trtx;" , there are no need "break after trtx/ page;" , you can remove it ,sas will automatically break page after trtx. &lt;BR /&gt;&lt;BR /&gt;Or remove NOPRINT option to check what happened .&lt;BR /&gt;define trtx/order noprint;&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;define trtx/order ;</description>
    <pubDate>Mon, 07 Feb 2022 12:31:17 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-02-07T12:31:17Z</dc:date>
    <item>
      <title>PROC REPORT page break after not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794775#M254855</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to break pages by "&lt;STRONG&gt;trtx"&lt;/STRONG&gt; but it's not breaking.&amp;nbsp; Please help, thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68255i70C4CCE331F6FCAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;code&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc sort data= final;
    by trtx usubjid  ;
run;

ods listing close;
ods rtf file = "output.rtf" startpage=no style= TLF_CN_9;
options symbolgen nobyline  orientation=landscape;
 

 title1 j=l "Randomized Treatment: #byval1"; 
 
proc report data = final nowd headline headskip missing split='@' style(header column)=[protectspecialchars=off];
		  by  trtx;
		  columns trtx col:   ;
		  define trtx/order noprint;
		  define col1    	  	/display   style(header)=[just=left]    style(column)=[asis=on cellwidth=1.4 in ] flow "Subject ID/ Age/Race/Sex"; 
		  define col2    	  	/display   style(header)=[just=left]    style(column)=[asis=on cellwidth=.5 in ] flow "Completed@Study"; 
		  define col3    	  	/display   style(header)=[just=left]    style(column)=[asis=on cellwidth=.7 in ] flow "Visit"; 
		  define col4    	  	/display   style(header)=[just=left]    style(column)=[asis=on cellwidth=.9 in ] flow "Date of@Discontinuation@(Day)"; 
          define col5    	  	/display   style(header)=[just=left]    style(column)=[asis=on cellwidth=.9 in ] flow "Date of@Last Dose@of IP@(Day)"; 
		  define col6    	  	/display   style(header)=[just=left]    style(column)=[asis=on cellwidth=2 in ] flow "Primary Reason for Discontinuation from Study"; 

	 	break after trtx/ page;
run;
  
	
ods rtf close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sample data&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;trtx&lt;/TD&gt;&lt;TD&gt;subjid&lt;/TD&gt;&lt;TD&gt;col1&lt;/TD&gt;&lt;TD&gt;col2&lt;/TD&gt;&lt;TD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lt;/TD&gt;&lt;TD&gt;WITHDRAWAL BY SUBJECT&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Feb 2022 12:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794775#M254855</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2022-02-07T12:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT page break after not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794781#M254858</link>
      <description>Since you are using "by  trtx;" , there are no need "break after trtx/ page;" , you can remove it ,sas will automatically break page after trtx. &lt;BR /&gt;&lt;BR /&gt;Or remove NOPRINT option to check what happened .&lt;BR /&gt;define trtx/order noprint;&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;define trtx/order ;</description>
      <pubDate>Mon, 07 Feb 2022 12:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794781#M254858</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-02-07T12:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT page break after not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794790#M254862</link>
      <description>still doesn't work. do you think it might be a template issue?</description>
      <pubDate>Mon, 07 Feb 2022 13:50:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794790#M254862</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2022-02-07T13:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT page break after not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794829#M254880</link>
      <description>maybe startpage=no</description>
      <pubDate>Mon, 07 Feb 2022 16:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794829#M254880</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2022-02-07T16:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT page break after not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794851#M254890</link>
      <description>Hi:&lt;BR /&gt;  The SAS style template does not have any impact on BREAK processing (except for colors and fonts) -- so the break not working can't be blamed on a style template. Generally, however, no one can run your code because although you sent some sample data, you didn't send the style template for anyone to use. Also, in your code, you're using some very odd spacing which makes it hard to read the code. Also, it looks like you're mixing ODS STYLE overrides and options like HEADLINE, HEADSKIP and FLOW with style overrides like ASIS=ON -- I don't find the need to use ASIS=ON much anymore since the reason for using it in the "old" days was to ensure indenting when lines were padded with leading spaces. But now with the INDENT= and LEFTMARGIN= style overrides, I just find it easier to use those options instead of padding a variable with spaces. Also, the only reason I know of for using protectspecialchars=off is when you are using RTF control strings in your data to insert raw RTF strings into your output -- but those RTF control strings should be visible in your sample data and I don't see any RTF control strings in your data, so I suspect we are not seeing everything.&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 07 Feb 2022 18:04:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794851#M254890</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-02-07T18:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT page break after not working</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794856#M254894</link>
      <description>THANK YOU!</description>
      <pubDate>Mon, 07 Feb 2022 18:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-REPORT-page-break-after-not-working/m-p/794856#M254894</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2022-02-07T18:56:28Z</dc:date>
    </item>
  </channel>
</rss>

