<?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: rtf style attribute in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/780997#M248900</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
length x $1000;
do i=1 to 5;
 x=repeat("This is an example ", 6);
 x=catx(' ',x,'~n~_~_~_~_~_~_~_',repeat("This is an example ", 14));
output;
end;
run;

ods escapechar='~';
ods rtf file="c:\temp\temp.rtf" ;
proc report data=a nowd missing;
define x/style(column)={asis=on};
run;
ods rtf close;&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;Or try this one :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
length x $1000;
do i=1 to 5;
 x=repeat("This is an example ", 8);
 x=catx(' ',x,'~n~{unicode 09}',repeat("This is an example ", 12));
output;
end;
run;

ods escapechar='~';
ods rtf file="c:\temp\temp.rtf" ;
proc report data=a nowd missing;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Nov 2021 12:23:27 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-11-18T12:23:27Z</dc:date>
    <item>
      <title>rtf style attribute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/780570#M248735</link>
      <description>&lt;P&gt;I want the output text like below.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;"This is an example this is an example&amp;nbsp;this is an example this is an example&amp;nbsp; this is an example this is an&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;example this is an example this is an example this is an example&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;This is an example this is an example&amp;nbsp;this is an example this is an example&amp;nbsp; this is an example this is an&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;example this is an example this is an example this is an example "&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;This is opposite to the "indent" like&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;proc report data=try;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; column x;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; define x / style={&lt;FONT color="#FF0000"&gt;indent&lt;/FONT&gt;=0.3in};&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;unfortunately, I forgot the keyword. Someone can help me out? Thanks a lot.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 20:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/780570#M248735</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2021-11-16T20:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: rtf style attribute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/780714#M248786</link>
      <description>Can you post your sample data ?</description>
      <pubDate>Wed, 17 Nov 2021 12:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/780714#M248786</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-17T12:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: rtf style attribute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/780868#M248856</link>
      <description>&lt;P&gt;For example below&lt;/P&gt;
&lt;P&gt;data a;&lt;BR /&gt;length x $1000;&lt;BR /&gt;do i=1 to 5;&lt;BR /&gt;x=repeat("This is an example ", 20);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;ods rtf file=".... ....\try1.rtf";&lt;BR /&gt;proc report data=a;&lt;BR /&gt;column x;&lt;BR /&gt;define x/style={indent=0.3in};&lt;BR /&gt;run;&lt;BR /&gt;ods rtf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The above code produced below figure 1, but I want figure 2. Currently I combined "^R'\li1000\fi-1000'" with data to get figure 2, which makes the data hard to read. I remember SAS has a simple way as I did with "indent" above . Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt; Figure 1&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.jpg" style="width: 648px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65853iC9926A81DF10CF5A/image-dimensions/648x264?v=v2" width="648" height="264" role="button" title="Capture.jpg" alt="Capture.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Figure 2&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 684px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65852i2FD7F2D3086840DC/image-dimensions/684x351?v=v2" width="684" height="351" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 20:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/780868#M248856</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2021-11-17T20:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: rtf style attribute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/780997#M248900</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
length x $1000;
do i=1 to 5;
 x=repeat("This is an example ", 6);
 x=catx(' ',x,'~n~_~_~_~_~_~_~_',repeat("This is an example ", 14));
output;
end;
run;

ods escapechar='~';
ods rtf file="c:\temp\temp.rtf" ;
proc report data=a nowd missing;
define x/style(column)={asis=on};
run;
ods rtf close;&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;Or try this one :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
length x $1000;
do i=1 to 5;
 x=repeat("This is an example ", 8);
 x=catx(' ',x,'~n~{unicode 09}',repeat("This is an example ", 12));
output;
end;
run;

ods escapechar='~';
ods rtf file="c:\temp\temp.rtf" ;
proc report data=a nowd missing;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Nov 2021 12:23:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/780997#M248900</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-18T12:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: rtf style attribute</title>
      <link>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/781017#M248910</link>
      <description>&lt;P&gt;Ksharp, Thanks for your help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 13:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/rtf-style-attribute/m-p/781017#M248910</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2021-11-18T13:46:11Z</dc:date>
    </item>
  </channel>
</rss>

