<?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 How to supress the contents in proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-supress-the-contents-in-proc-report/m-p/706190#M216722</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I'have some problem in rtf contents. My question is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to control the pagebreak by generating a variable of "_pageno" and using proc&amp;nbsp;report to output the listing to rtf, here is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
	set sashelp.class;
	if _N_ &amp;lt;=5 then _pageno = 1;
		else if _N_ &amp;lt;=10 then _pageno = 2;
		else if _N_ &amp;lt;=15 then _pageno = 3;
		else if _N_ &amp;lt;=20 then _pageno = 4;
run;

%macro report();
	%do i = 1 %to 4;
		Title "This is Table Title";
		proc report data=class (where=( _pageno = &amp;amp;i.)) nowd split='|' ;  
		run;
		%end;
%mend report;

%let path = C:\Users\Administrator\Desktop\test;
ods html close;
options missing = "" nodate nonumber orientation =landscape ls=200 center papersize=A4 ;
title;footnote;
ods escapechar='`';

ods tagsets.rtf path = "&amp;amp;path" file="class.rtf" style=tagsetsrtf 
options(contents='yes' toc_data='on' continue_tag='off' toc_level = '1' vspace='off' );

ods proclabel "This is Table of Contents" ;
%report;

ods tagsets.rtf close;
ods html;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;here if my result, i dont need the "Report PROCEDURE" displayed in the comtents.&lt;/P&gt;&lt;P&gt;Is there a method to supress the "Report PROCEDURE"?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ad2b87eda4721546a8fca165be8b731.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52656i44698400392E1890/image-size/large?v=v2&amp;amp;px=999" role="button" title="ad2b87eda4721546a8fca165be8b731.png" alt="ad2b87eda4721546a8fca165be8b731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2020 02:25:24 GMT</pubDate>
    <dc:creator>Jinlf</dc:creator>
    <dc:date>2020-12-16T02:25:24Z</dc:date>
    <item>
      <title>How to supress the contents in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-supress-the-contents-in-proc-report/m-p/706190#M216722</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I'have some problem in rtf contents. My question is :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to control the pagebreak by generating a variable of "_pageno" and using proc&amp;nbsp;report to output the listing to rtf, here is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
	set sashelp.class;
	if _N_ &amp;lt;=5 then _pageno = 1;
		else if _N_ &amp;lt;=10 then _pageno = 2;
		else if _N_ &amp;lt;=15 then _pageno = 3;
		else if _N_ &amp;lt;=20 then _pageno = 4;
run;

%macro report();
	%do i = 1 %to 4;
		Title "This is Table Title";
		proc report data=class (where=( _pageno = &amp;amp;i.)) nowd split='|' ;  
		run;
		%end;
%mend report;

%let path = C:\Users\Administrator\Desktop\test;
ods html close;
options missing = "" nodate nonumber orientation =landscape ls=200 center papersize=A4 ;
title;footnote;
ods escapechar='`';

ods tagsets.rtf path = "&amp;amp;path" file="class.rtf" style=tagsetsrtf 
options(contents='yes' toc_data='on' continue_tag='off' toc_level = '1' vspace='off' );

ods proclabel "This is Table of Contents" ;
%report;

ods tagsets.rtf close;
ods html;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;here if my result, i dont need the "Report PROCEDURE" displayed in the comtents.&lt;/P&gt;&lt;P&gt;Is there a method to supress the "Report PROCEDURE"?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ad2b87eda4721546a8fca165be8b731.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52656i44698400392E1890/image-size/large?v=v2&amp;amp;px=999" role="button" title="ad2b87eda4721546a8fca165be8b731.png" alt="ad2b87eda4721546a8fca165be8b731.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 02:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-supress-the-contents-in-proc-report/m-p/706190#M216722</guid>
      <dc:creator>Jinlf</dc:creator>
      <dc:date>2020-12-16T02:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to supress the contents in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-supress-the-contents-in-proc-report/m-p/706399#M216811</link>
      <description>&lt;P&gt;Taking inspiration from:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=odsug&amp;amp;docsetTarget=p19rpsb989jyadn1kgunyh4t8g0e.htm&amp;amp;locale=en#p1n3fzsw4wkj58n1xstodnudgvjf" target="_self"&gt;Example 1: "Creating a Table of Contents" | SAS Help Center: ODS TAGSETS.RTF Statement&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I made this change to the Macro&amp;nbsp;&lt;CODE class=" language-sas"&gt;report()&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro report();
  %let i=1;
		proc report data=class (where=( _pageno = &amp;amp;i.)) nowd split='|' ;  run;
	%do i = 2 %to 4;
    ods tagsets.rtf options(toc_data='no');
		Title "This is Table Title";
		proc report data=class (where=( _pageno = &amp;amp;i.)) nowd split='|' ;  run;
  %end;
%mend report;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;This left justifies the tables 2 through 4 for me... IDK why? Hopefully that's something you can apply code to.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 18:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-supress-the-contents-in-proc-report/m-p/706399#M216811</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-12-16T18:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to supress the contents in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-supress-the-contents-in-proc-report/m-p/706507#M216834</link>
      <description>&lt;P&gt;Thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem has been resolved perfectly by you codes.&amp;nbsp; A s&lt;SPAN&gt;mall adjustments to you code. like this.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro report();
  %let i=1;
        Title "This is Table Title";
		proc report data=class (where=( _pageno = &amp;amp;i.)) nowd split='|' ;  run;
	%do i = 2 %to 4;
    ods tagsets.rtf options(toc_data='no');
		Title "This is Table Title";
		proc report data=class (where=( _pageno = &amp;amp;i.)) nowd split='|' ;  run;
  %end;
%mend report;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Dec 2020 01:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-supress-the-contents-in-proc-report/m-p/706507#M216834</guid>
      <dc:creator>Jinlf</dc:creator>
      <dc:date>2020-12-17T01:20:39Z</dc:date>
    </item>
  </channel>
</rss>

