<?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: Can't suppress the output when using PROC STDRATE with a BY statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-t-suppress-the-output-when-using-PROC-STDRATE-with-a-BY/m-p/983859#M379596</link>
    <description>&lt;P&gt;Looks like a ODS RTF output and&amp;nbsp;&lt;SPAN&gt;PROC STDRATE&lt;/SPAN&gt; &amp;nbsp;bug to me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you test it with ODS PDF or ODS Html, or ODS Listing it "works."&lt;/P&gt;
&lt;P&gt;The PDF is not generated at all, the HTML has an empty body (plus a ton of css), and the listing is just an empty file (0 bytes).&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let fl_path="R:\test.rtf";

%let fl_path2="R:\test.pdf";

%let path3="R:\";
%let fl3="test.html";

%let fl_path4="R:\test.lst";

data dts;
input tme $ trt $ x n;
datalines;
1 A 59 17775
1 B 330 74533
2 A 45 72367
2 B 330 74533
;
run;


ODS noproctitle;
ODS RTF bodytitle_aux NOTOC_DATA FILE=&amp;amp;fl_path.;
ODS pdf FILE=&amp;amp;fl_path2.;
ODS html path=&amp;amp;path3. body=&amp;amp;fl3.;
ods listing file=&amp;amp;fl_path4.;
title;
ods select none;
proc stdrate data=dts method=mh stat=rate(mult=100) effect=diff cl=normal plots=none;
by tme;
population group(order=data)=trt event=x total=n;
run;
ods select all;
ODS RTF close;
ODS pdf close;
ODS html close;
ods listing close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd contact SAS tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Mon, 23 Feb 2026 10:47:08 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2026-02-23T10:47:08Z</dc:date>
    <item>
      <title>Can't suppress the output when using PROC STDRATE with a BY statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-suppress-the-output-when-using-PROC-STDRATE-with-a-BY/m-p/983858#M379595</link>
      <description>&lt;P&gt;Good morning, I have a strange issue: I need to exclude all the outputs of a PROC STDRATE with a BY statement&amp;nbsp;from my ODS RTF file output when. Here is an example,&amp;nbsp;you need to set your own file path &amp;amp;fl_path (sorry for the bad formatting, but I couldn't get through the bugs in the suggested method):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data dts;&lt;BR /&gt;input tme $ trt $ x n;&lt;BR /&gt;datalines;&lt;BR /&gt;1 A 59 17775&lt;BR /&gt;1 B 330 74533&lt;BR /&gt;2 C 45 72367&lt;BR /&gt;2 D 330 74533&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ODS RTF bodytitle_aux NOTOC_DATA FILE=&amp;amp;fl_path;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods exclude all;&lt;BR /&gt;proc stdrate data=dts method=mh stat=rate(mult=100) effect=diff cl=normal plots=none;&lt;BR /&gt;by tme;&lt;BR /&gt;population group(order=data)=trt event=x total=n;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS RTF close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm using an ODS EXCLUDE ALL as it always work, but in this case I get an unwanted "The STDRATE Procedure" in my output file, without any other SAS output. I get the same results by excluding only the tables created inmy case (ods exclude stdinfo StdRate effect;). To note: when not using a BY statement I have no issue! I suspect that it can be related to the fact that the ods table related to the method=mh has no name (see p. 9406 of STDRATE procedure documentation). I'm using SAS 9.4 with EG 8.3. What do you think? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 09:23:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-suppress-the-output-when-using-PROC-STDRATE-with-a-BY/m-p/983858#M379595</guid>
      <dc:creator>rezze27</dc:creator>
      <dc:date>2026-02-23T09:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can't suppress the output when using PROC STDRATE with a BY statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-suppress-the-output-when-using-PROC-STDRATE-with-a-BY/m-p/983859#M379596</link>
      <description>&lt;P&gt;Looks like a ODS RTF output and&amp;nbsp;&lt;SPAN&gt;PROC STDRATE&lt;/SPAN&gt; &amp;nbsp;bug to me.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you test it with ODS PDF or ODS Html, or ODS Listing it "works."&lt;/P&gt;
&lt;P&gt;The PDF is not generated at all, the HTML has an empty body (plus a ton of css), and the listing is just an empty file (0 bytes).&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let fl_path="R:\test.rtf";

%let fl_path2="R:\test.pdf";

%let path3="R:\";
%let fl3="test.html";

%let fl_path4="R:\test.lst";

data dts;
input tme $ trt $ x n;
datalines;
1 A 59 17775
1 B 330 74533
2 A 45 72367
2 B 330 74533
;
run;


ODS noproctitle;
ODS RTF bodytitle_aux NOTOC_DATA FILE=&amp;amp;fl_path.;
ODS pdf FILE=&amp;amp;fl_path2.;
ODS html path=&amp;amp;path3. body=&amp;amp;fl3.;
ods listing file=&amp;amp;fl_path4.;
title;
ods select none;
proc stdrate data=dts method=mh stat=rate(mult=100) effect=diff cl=normal plots=none;
by tme;
population group(order=data)=trt event=x total=n;
run;
ods select all;
ODS RTF close;
ODS pdf close;
ODS html close;
ods listing close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd contact SAS tech support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 10:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-suppress-the-output-when-using-PROC-STDRATE-with-a-BY/m-p/983859#M379596</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2026-02-23T10:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't suppress the output when using PROC STDRATE with a BY statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-suppress-the-output-when-using-PROC-STDRATE-with-a-BY/m-p/983867#M379597</link>
      <description>&lt;P&gt;This is caused by the BODYTITLE_AUX option on the ODS RTF statement. The BODYTITLE option also shows this behavior. If you remove the option, the output and procedure title are not shown. Another option would be to use Tagsets.RTF where BODYTITLE is the default.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ODS tagsets.rtf FILE='c:\temp\test.rtf';

ods exclude all;

proc stdrate data=dts method=mh stat=rate(mult=100) effect=diff cl=normal plots=none;
by tme;
population group(order=data)=trt event=x total=n;
run;

ODS _all_ close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Feb 2026 12:09:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-suppress-the-output-when-using-PROC-STDRATE-with-a-BY/m-p/983867#M379597</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2026-02-23T12:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't suppress the output when using PROC STDRATE with a BY statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-suppress-the-output-when-using-PROC-STDRATE-with-a-BY/m-p/983960#M379628</link>
      <description>&lt;P&gt;Thank you! That was enough for my specific case, as I didn't actually need the BODYTITLE_AUX&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 12:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-suppress-the-output-when-using-PROC-STDRATE-with-a-BY/m-p/983960#M379628</guid>
      <dc:creator>rezze27</dc:creator>
      <dc:date>2026-02-24T12:50:23Z</dc:date>
    </item>
  </channel>
</rss>

