<?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: prefix feild values by a tab in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242865#M45120</link>
    <description>Yes i agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, you could use either of the functions to remove the trailing blanks</description>
    <pubDate>Tue, 12 Jan 2016 05:05:52 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2016-01-12T05:05:52Z</dc:date>
    <item>
      <title>prefix feild values by a tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242841#M45105</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to prefix field values with a tab. (NOTE: It cannot be spaces). Currently I'm using below logic. &amp;nbsp;Field "Sep" should have a vlaue of tab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;Data test;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;set qa_accts;&lt;BR /&gt;sep=' '; &lt;FONT color="#FF0000"&gt;/*** THIS SHOULD BE TAB ***/&lt;/FONT&gt;&lt;BR /&gt; ends='';&lt;FONT color="#FF0000"&gt; /** THIS SHOULD BE SPACE **/&lt;/FONT&gt;&lt;BR /&gt; var1='V$_dpd';&lt;BR /&gt; dpd = actual_dpd;&lt;BR /&gt; ltr_variable_data = catx(sep,var1,dpd,ends);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 01:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242841#M45105</guid>
      <dc:creator>helloSAS</dc:creator>
      <dc:date>2016-01-12T01:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: prefix feild values by a tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242844#M45108</link>
      <description>&lt;P&gt;Please try tab space with "09"x&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data test;
set qa_accts;
sep='"09"x; /*** THIS SHOULD BE TAB ***/
ends=''; /** THIS SHOULD BE SPACE **/
var1='V$_dpd';
dpd = actual_dpd;
ltr_variable_data = cat(sep,var1,dpd,ends);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;, but again if you are concatenating the variables with catx function, this function will strip the blank spaces in the new variable created i.e., ltr_variable_data. so the best way to avoid it is just use cat function instead of catx. It does not strip or trim the spaces and keeps the spaces as is in the new variable. &lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 02:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242844#M45108</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-01-12T02:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: prefix feild values by a tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242857#M45115</link>
      <description>&lt;P&gt;Thanks! I used cat function but var1 is having trailing blanks. How to remove them?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 03:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242857#M45115</guid>
      <dc:creator>helloSAS</dc:creator>
      <dc:date>2016-01-12T03:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: prefix feild values by a tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242864#M45119</link>
      <description>&lt;P&gt;TRIM() function&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212226.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000212226.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CAT&lt;U&gt;&lt;STRONG&gt;T&lt;/STRONG&gt;&lt;/U&gt; function (vs CAT)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n16y1vyi397p84n19dpvzw0pemsa.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n16y1vyi397p84n19dpvzw0pemsa.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2016 05:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242864#M45119</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-12T05:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: prefix feild values by a tab</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242865#M45120</link>
      <description>Yes i agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, you could use either of the functions to remove the trailing blanks</description>
      <pubDate>Tue, 12 Jan 2016 05:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prefix-feild-values-by-a-tab/m-p/242865#M45120</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-01-12T05:05:52Z</dc:date>
    </item>
  </channel>
</rss>

