<?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: Output tab instead of space to rtf in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/608910#M23569</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;How do you know that you have tabs in the data. SAS procedures will not produce tabs. Are you using PROC PRINT or PROC REPORT on data with tabs -- do you use the RTF control string \tab (I think) or the Excel '09'x in hexadecimal?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Without any idea of your data or your code or your RTF settings for ODS, it's hard to make any constructive suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2019 03:19:49 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2019-12-03T03:19:49Z</dc:date>
    <item>
      <title>Output tab instead of space to rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/608906#M23568</link>
      <description>&lt;P&gt;I'm using SAS 9.4 and it seems to convert tab to space in a text string automatically. Is there any way to output tab instead of space to rtf.&amp;nbsp; Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 02:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/608906#M23568</guid>
      <dc:creator>hlnquynh</dc:creator>
      <dc:date>2019-12-03T02:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Output tab instead of space to rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/608910#M23569</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;How do you know that you have tabs in the data. SAS procedures will not produce tabs. Are you using PROC PRINT or PROC REPORT on data with tabs -- do you use the RTF control string \tab (I think) or the Excel '09'x in hexadecimal?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Without any idea of your data or your code or your RTF settings for ODS, it's hard to make any constructive suggestions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 03:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/608910#M23569</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-12-03T03:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Output tab instead of space to rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/608913#M23571</link>
      <description>&lt;P&gt;Hello Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to output something like this for example, with &lt;FONT color="#FF0000"&gt;[tab]&lt;/FONT&gt; is actual tab space.&lt;/P&gt;&lt;P&gt;I want to output the same tab space as tab in MS Words without being convert to spaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for considering!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data rtf;&lt;BR /&gt;length cr1 - cr2 $64;&lt;BR /&gt;cr1 = "#S={leftmargin= 0.5cm}&lt;FONT color="#FF0000"&gt;[tab][tab]&lt;/FONT&gt;&amp;lt; 80%";&lt;BR /&gt;cr2 = "8 (10.0%)";&lt;BR /&gt;output;&lt;BR /&gt;cr1 = "#S={leftmargin= 0.5cm}80% &amp;lt;=&lt;FONT color="#FF0000"&gt;[tab]&lt;/FONT&gt;&amp;lt; 90%";&lt;BR /&gt;cr2 = "72 (90.0%)";&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods listing close;&lt;BR /&gt;ods results off;&lt;BR /&gt;ods escapechar='#' ;&lt;BR /&gt;options orientation = portrait nodate nonumber;&lt;BR /&gt;ods rtf file = "C:\users\&amp;amp;sysuserid.\Desktop\sample.rtf" style = journal;&lt;/P&gt;&lt;P&gt;proc report data=rtf nowindows split='@' missing;&lt;BR /&gt;column cr1 cr2;&lt;BR /&gt;define cr1 / "column1" style(column)={asis=on cellwidth= 40%};&lt;BR /&gt;define cr2 / "column2" style(column)={asis=on cellwidth= 20%};&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods listing;&lt;BR /&gt;ods results on;&lt;BR /&gt;ods rtf close;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 04:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/608913#M23571</guid>
      <dc:creator>hlnquynh</dc:creator>
      <dc:date>2019-12-03T04:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Output tab instead of space to rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/609123#M23585</link>
      <description>&lt;P&gt;It is very likely that your source code has had the tabs turned to spaces when saving the file.&lt;/P&gt;
&lt;P&gt;Also please describe what you are attempting to accomplish here. Tab characters are not of a standard length and in an RTF document the locations of results would be based on an individuals settings for their default document. So inserting a fixed number of characters to align results is not reliable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your are looking to send to RTF look at the&amp;nbsp;escapechar&amp;nbsp;function RAW to insert a raw RTF tab using #{Raw \tab} for a single tab or \tab\tab for two tabs.&lt;/P&gt;
&lt;PRE&gt;data work.rtf;
length cr1 - cr2 $64;
cr1 = "#S={leftmargin= 0.5cm}#{Raw \tab\tab}&amp;lt; 80%";
cr2 = "8 (10.0%)";
output;
cr1 = "#S={leftmargin= 0.5cm}80% &amp;lt;=#{raw \tab}&amp;lt; 90%";
cr2 = "72 (90.0%)";
output;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 18:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/609123#M23585</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-16T18:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Output tab instead of space to rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/609137#M23586</link>
      <description>&lt;P&gt;Are you just asking how to get the actual tab ('09'x) character into your data variables?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data rtf;
  length cr1 - cr2 $64;
  cr1 = "#S={leftmargin= 0.5cm}"||'0909'x||"&amp;lt; 80%";
  cr2 = "8 (10.0%)";
  output;

  cr1 = "#S={leftmargin= 0.5cm}80% &amp;lt;="||'09'x||"&amp;lt; 90%";
  cr2 = "72 (90.0%)";
  output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Dec 2019 18:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/609137#M23586</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-03T18:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Output tab instead of space to rtf</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/609159#M23587</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Well, if you right justify the data values, you don't really need tab or left margin at all:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="notab.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34414i0B1CC9107D60B462/image-size/large?v=v2&amp;amp;px=999" role="button" title="notab.png" alt="notab.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; But if you WANT to insert the RTF control for tab, it is \tab as shown below (without right justification, so you could see the impact of using the left margin:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_tab_rtf.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34415iD766B29A2EF93C03/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_tab_rtf.png" alt="use_tab_rtf.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I wonder whether you want a demographic report such as shown on page 9 or 17 of this paper: &lt;A href="https://support.sas.com/resources/papers/proceedings/pdfs/sgf2008/173-2008.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/pdfs/sgf2008/173-2008.pdf&lt;/A&gt; ? If so, these reports were done without using RTF tabs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 20:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Output-tab-instead-of-space-to-rtf/m-p/609159#M23587</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-12-03T20:23:03Z</dc:date>
    </item>
  </channel>
</rss>

