<?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: How to control the outlinelevel of a text output by &amp;quot;ods rtf&amp;quot; statement in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484607#M21402</link>
    <description>Hi: &lt;BR /&gt; You should have the RUN immediately before your ODS RTF CLOSE; -- NOT before your COLUMN statement. Is this program producing any output for you? It is probably producing all the defaults, but you should also be seeing error messages in the log. In my posting on Friday, I suggested you look in the documentation for the NOHEADER option on the PROC REPORT statement. Did you do that? I believe that would help you here once you correct your other mistakes.&lt;BR /&gt; &lt;BR /&gt;Cynthia</description>
    <pubDate>Tue, 07 Aug 2018 04:04:48 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-08-07T04:04:48Z</dc:date>
    <item>
      <title>How to control the outlinelevel of a text output by "ods rtf" statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/483702#M21385</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="C:\Users\user\Desktop\test.rtf";
data t;
a='';
run;
proc report data=t  
style={protectspecialchars=off
frame=void rules=none font_size=10.5 fontweight=bold posttext = "\outlinelevel3\ {title1:this is a test} \par"};
column a;
define a/noprint;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I tried to generate a report automaticly by ODS RTF statement and to control the outlinelevel of the text&lt;STRONG&gt;"title1:this is a test".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But nothing was output when I ran this code.&lt;/P&gt;&lt;P&gt;I just found this code works only if&amp;nbsp; remove the 'noprint' option.But this will cause the output of the data that i dont want.&lt;/P&gt;&lt;P&gt;Pls help on this,Many thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 08:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/483702#M21385</guid>
      <dc:creator>Marakesh</dc:creator>
      <dc:date>2018-08-03T08:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the outlinelevel of a text output by "ods rtf" statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/483746#M21386</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; I don't understand your code. NOPRINT is used in PROC REPORT to suppress the visibility of a column. Since A was just a space, I don't understand the purpose of the variable. It seems that you wanted to have some kind of string "this is a test" defined in RTF control strings as outlinelevel3 -- I don't understand what that would LOOK like in the RTF file. But since you were hanging the posttext onto an unknown part of PROC REPORT (did you mean to have style(report) there?) once you suppress A, there's no report for PROC REPORT to display. And, POSTTEXT would put the text at the BOTTOM of the report, or AFTER any text in a report cell, is that what you want? Also, if all you want to do is suppress the headers, there is a NOHEADER option for PROC REPORT that will work. If you are trying to insert items into your own TOC with OUTLINELEVEL3, this may be relevant: &lt;A href="http://www2.sas.com/proceedings/forum2007/097-2007.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2007/097-2007.pdf&lt;/A&gt; and &lt;A href="http://support.sas.com/resources/papers/proceedings11/116-2011.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings11/116-2011.pdf&lt;/A&gt; and &lt;A href="http://www2.sas.com/proceedings/forum2008/238-2008.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/forum2008/238-2008.pdf&lt;/A&gt; .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other ways to write text, but without knowing what this would look like or what outlinelevel3 does, it is hard to speculate.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 03 Aug 2018 12:21:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/483746#M21386</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-03T12:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the outlinelevel of a text output by "ods rtf" statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484243#M21390</link>
      <description>&lt;P&gt;Hi Cynthia, Thanks for your reply and papers.&lt;/P&gt;&lt;P&gt;You right,a (report) in style statement was missed.&lt;/P&gt;&lt;P&gt;Please refer to the image below,I want to keep the text"title1: this is a text" which highlighted ,and remove the variable named x .But the"define(x)/noprint" option didnt work at all.Do you know any other ways to set outlinelevel?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="无标题.png" style="width: 462px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22240i08B1D3F5F1CA8CF3/image-dimensions/462x191?v=v2" width="462" height="191" role="button" title="无标题.png" alt="无标题.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 02:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484243#M21390</guid>
      <dc:creator>Marakesh</dc:creator>
      <dc:date>2018-08-06T02:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the outlinelevel of a text output by "ods rtf" statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484336#M21394</link>
      <description>Hi: I'm stumped -- you must not have sent all your code because I don't see anything in your posted code that refers to X in dataset WORK.T. &lt;BR /&gt;&lt;BR /&gt;Sorry,&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 06 Aug 2018 12:41:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484336#M21394</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-06T12:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the outlinelevel of a text output by "ods rtf" statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484584#M21400</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="C:\Users\user\Desktop\test.rtf";
data t;
x=" ";
run;
proc report data=t  
style(report)={protectspecialchars=off
frame=void rules=none font_size=10.5 fontweight=bold posttext = "\outlinelevel3\ {title1:this is a test}  \par"};
run;
column x;
define x/center;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi Cynthia,look at this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 01:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484584#M21400</guid>
      <dc:creator>Marakesh</dc:creator>
      <dc:date>2018-08-07T01:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the outlinelevel of a text output by "ods rtf" statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484607#M21402</link>
      <description>Hi: &lt;BR /&gt; You should have the RUN immediately before your ODS RTF CLOSE; -- NOT before your COLUMN statement. Is this program producing any output for you? It is probably producing all the defaults, but you should also be seeing error messages in the log. In my posting on Friday, I suggested you look in the documentation for the NOHEADER option on the PROC REPORT statement. Did you do that? I believe that would help you here once you correct your other mistakes.&lt;BR /&gt; &lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 07 Aug 2018 04:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484607#M21402</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-08-07T04:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to control the outlinelevel of a text output by "ods rtf" statement</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484651#M21403</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"NOHEADER" option is a good choice.That's what I want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Marakesh&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 08:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-control-the-outlinelevel-of-a-text-output-by-quot-ods-rtf/m-p/484651#M21403</guid>
      <dc:creator>Marakesh</dc:creator>
      <dc:date>2018-08-07T08:45:19Z</dc:date>
    </item>
  </channel>
</rss>

