<?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 ods rtf nbspace issue in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ods-rtf-nbspace-issue/m-p/605433#M17198</link>
    <description>&lt;P&gt;Please see my code below. In the output ^{&lt;FONT color="#800080" face="Courier New" size="4"&gt;nbspace 3} does not work.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;ESCAPECHAR&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;"^"&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; x;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;x=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;"^S={fontweight=bold}Age (years) ^S={fontweight=light}^{newline} ^{nbspace 3}n ^{newline}^{nbspace 3}Mean ± SD ^{newline}^{nbspace 3}Median (Range)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;rtf&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'XXX\try.rtf'&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;report&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=x;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;rtf&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;I want to get below output:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 144px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34081iBE233DE6922FBE15/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;but the rtf output is blow:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture_2.JPG" style="width: 181px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34082iEC05B4E14B50E477/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture_2.JPG" alt="Capture_2.JPG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 16:07:39 GMT</pubDate>
    <dc:creator>Niugg2010</dc:creator>
    <dc:date>2019-11-19T16:07:39Z</dc:date>
    <item>
      <title>ods rtf nbspace issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ods-rtf-nbspace-issue/m-p/605433#M17198</link>
      <description>&lt;P&gt;Please see my code below. In the output ^{&lt;FONT color="#800080" face="Courier New" size="4"&gt;nbspace 3} does not work.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;ESCAPECHAR&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;"^"&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt; x;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;x=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;"^S={fontweight=bold}Age (years) ^S={fontweight=light}^{newline} ^{nbspace 3}n ^{newline}^{nbspace 3}Mean ± SD ^{newline}^{nbspace 3}Median (Range)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;rtf&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="4"&gt;'XXX\try.rtf'&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;report&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;=x;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="4"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;rtf&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="4"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;I want to get below output:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 144px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34081iBE233DE6922FBE15/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;but the rtf output is blow:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture_2.JPG" style="width: 181px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34082iEC05B4E14B50E477/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture_2.JPG" alt="Capture_2.JPG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 16:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ods-rtf-nbspace-issue/m-p/605433#M17198</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2019-11-19T16:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: ods rtf nbspace issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ods-rtf-nbspace-issue/m-p/605453#M17202</link>
      <description>&lt;P&gt;By default Proc Report will left justify text fields, removing spaces as needed.&lt;/P&gt;
&lt;P&gt;You would need to define a style override for the variable to use Style =[ASIS=On] in a define statement.&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;PRE&gt;proc report data=work.x;
define x / style=[Asis=on];

run;&lt;/PRE&gt;
&lt;P&gt;You are likely to get some interaction between the actual column width and your newlines making it appear as if there are extra blank lines if your column is not wide enough depending on Ods destination and I'm not sure about a consistent fix for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 16:55:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ods-rtf-nbspace-issue/m-p/605453#M17202</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-19T16:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: ods rtf nbspace issue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ods-rtf-nbspace-issue/m-p/605467#M17205</link>
      <description>&lt;P&gt;If add define x / style=[Asis=on]; the space issue can be fixed. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 17:12:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ods-rtf-nbspace-issue/m-p/605467#M17205</guid>
      <dc:creator>Niugg2010</dc:creator>
      <dc:date>2019-11-19T17:12:56Z</dc:date>
    </item>
  </channel>
</rss>

