<?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 get an ODS RTF TEXT without tables around in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871839#M344450</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
You could try TITLE
OR Try style PRETEXT=
*/
ods RTF file="c:\temp\test.rtf" startpage=no bodytitle;

proc odstext;
p "REPORT 1";
run;
ods RTF text="{\line}";
ods RTF text ="REPORT 2";
ods RTF text="{\line}";
ods  text="{\pard REPORT 3 \par}";




title j=l 'REPORT 1';
title2 j=l 'REPORT 2';
proc report data=sashelp.class(obs=1) noheader nowd 
style={pretext='REPORT1' frame=void rules=none just=l}
style(column)={color=white cellwidth=1 cellheight=1}; 
column name;
run;




title3 j=l 'REPORT 3';
proc sql ;
select name from  sashelp.class(obs=0);
quit;

title;
ods RTF close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1682424016415.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83151i9C00A0CD5E35B8B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1682424016415.png" alt="Ksharp_0-1682424016415.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
Alternative way is using pre-product ODS WORD.
*/
ods word file="c:\temp\test.docx";

proc odstext;
h2 "REPORT 1"/style={color=black};
h2 "REPORT 2"/style={color=black};
h2 "REPORT 3"/style={color=black};
run;

ods word  close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1682424049905.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83152i577CD65F5B71F2B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1682424049905.png" alt="Ksharp_1-1682424049905.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 12:00:59 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-04-25T12:00:59Z</dc:date>
    <item>
      <title>How to get an ODS RTF TEXT without tables around</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871679#M344385</link>
      <description>&lt;P&gt;Hi, I´m using ODS RTF to print a Report, but I can´t figure out the best way to write a text without having to deal with the tables that comes with any TEXT commands.&lt;/P&gt;&lt;P&gt;The only one I found that do not come within a table is "\pard" and "\par", but instead, comes with a table line AFTER the text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods RTF file="test.rtf" ;&lt;/P&gt;&lt;P&gt;proc odstext;&lt;BR /&gt;p "REPORT 1";&lt;BR /&gt;run;&lt;BR /&gt;ods RTF text="{\line}";&lt;BR /&gt;ods RTF text ="REPORT 2";&lt;BR /&gt;ods RTF text="{\line}";&lt;BR /&gt;ods RTF text="{\pard REPORT 3 \par}";&lt;/P&gt;&lt;P&gt;ods RTF close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the Output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LUISBARTHOLO_1-1682357049048.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83104i733FD4FB2301983C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LUISBARTHOLO_1-1682357049048.png" alt="LUISBARTHOLO_1-1682357049048.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OBS: Turn on "SHOW GRIDLINES" in Microsof Word to see the table properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know a way to write texts without tables around with ODS RTF?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 17:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871679#M344385</guid>
      <dc:creator>LUISBARTHOLO</dc:creator>
      <dc:date>2023-04-24T17:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an ODS RTF TEXT without tables around</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871704#M344404</link>
      <description>&lt;P&gt;You can try ODS TAGSETS.RTF and see if that meets your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods tagsets.rtf file="test.rtf" 
   options(Tables_off='Usertext')
;

proc odstext;
p "REPORT 1";
run;
ods tagsets.rtf text="{\line}";
ods tagsets.rtf text ="REPORT 2";
ods tagsets.rtf text="{\line}";
ods tagsets.rtf text="{\pard REPORT 3 \par}";

ods tagsets.rtf close;

 &lt;/PRE&gt;
&lt;P&gt;You can set other style elements off as well but most of those really do need the tables for proper formatting.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 19:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871704#M344404</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-04-24T19:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an ODS RTF TEXT without tables around</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871709#M344408</link>
      <description>Thank you ballardw!&lt;BR /&gt;Unfortunatelly I have almost 1.500 lines in my program and tagsets.rtf doesn´t give me all the options I need, so, it has to be ODS RTF.</description>
      <pubDate>Mon, 24 Apr 2023 20:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871709#M344408</guid>
      <dc:creator>LUISBARTHOLO</dc:creator>
      <dc:date>2023-04-24T20:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an ODS RTF TEXT without tables around</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871742#M344421</link>
      <description>&lt;P&gt;Length of code is generally irrelevant. The specific options might be worked around but would need examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 22:29:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871742#M344421</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-04-24T22:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an ODS RTF TEXT without tables around</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871839#M344450</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
You could try TITLE
OR Try style PRETEXT=
*/
ods RTF file="c:\temp\test.rtf" startpage=no bodytitle;

proc odstext;
p "REPORT 1";
run;
ods RTF text="{\line}";
ods RTF text ="REPORT 2";
ods RTF text="{\line}";
ods  text="{\pard REPORT 3 \par}";




title j=l 'REPORT 1';
title2 j=l 'REPORT 2';
proc report data=sashelp.class(obs=1) noheader nowd 
style={pretext='REPORT1' frame=void rules=none just=l}
style(column)={color=white cellwidth=1 cellheight=1}; 
column name;
run;




title3 j=l 'REPORT 3';
proc sql ;
select name from  sashelp.class(obs=0);
quit;

title;
ods RTF close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1682424016415.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83151i9C00A0CD5E35B8B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1682424016415.png" alt="Ksharp_0-1682424016415.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
Alternative way is using pre-product ODS WORD.
*/
ods word file="c:\temp\test.docx";

proc odstext;
h2 "REPORT 1"/style={color=black};
h2 "REPORT 2"/style={color=black};
h2 "REPORT 3"/style={color=black};
run;

ods word  close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1682424049905.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83152i577CD65F5B71F2B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1682424049905.png" alt="Ksharp_1-1682424049905.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 12:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-an-ODS-RTF-TEXT-without-tables-around/m-p/871839#M344450</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-04-25T12:00:59Z</dc:date>
    </item>
  </channel>
</rss>

