<?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: Trailing space removal using strip function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trailing-space-removal-using-strip-function/m-p/587460#M167799</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Imagine putting a small item in a large drawer. It won't reduce the size of the drawer.&lt;/P&gt;
&lt;P&gt;The same happens here : you affect a small string to a previously large dimensioned string&lt;/P&gt;
&lt;P&gt;so FNCTL_CMPNT_NM will contain the stripped string and the rest will be filled with blanks.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 08:49:21 GMT</pubDate>
    <dc:creator>gamotte</dc:creator>
    <dc:date>2019-09-10T08:49:21Z</dc:date>
    <item>
      <title>Trailing space removal using strip function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trailing-space-removal-using-strip-function/m-p/587445#M167792</link>
      <description>&lt;P&gt;I'm trying to remove the trailing spaces with the use Strip function as follows, but it is not removing the spaces in the final Output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FNCTL_CMPNT_NM=strip(ifc(indexw("&amp;amp;etls_jobName","_ADP_"),'AP','LIS'));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My Value for FNCTL_CMPNT_NM&amp;nbsp;is 'LIS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' after the execution of the above code.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 08:04:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trailing-space-removal-using-strip-function/m-p/587445#M167792</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2019-09-10T08:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing space removal using strip function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trailing-space-removal-using-strip-function/m-p/587459#M167798</link>
      <description>&lt;P&gt;I assume the "final output" is what gets into variable&amp;nbsp;&lt;EM&gt;FNCTL_CMPNT_NM&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;With SAS character variables being of type CHAR you will always have strings padded up with blanks up to the length of the character variable so there are in a way always trailing blanks. Nothing you can do about it except to define the variable with a length not longer as you really need it.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 08:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trailing-space-removal-using-strip-function/m-p/587459#M167798</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-09-10T08:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trailing space removal using strip function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trailing-space-removal-using-strip-function/m-p/587460#M167799</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Imagine putting a small item in a large drawer. It won't reduce the size of the drawer.&lt;/P&gt;
&lt;P&gt;The same happens here : you affect a small string to a previously large dimensioned string&lt;/P&gt;
&lt;P&gt;so FNCTL_CMPNT_NM will contain the stripped string and the rest will be filled with blanks.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 08:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trailing-space-removal-using-strip-function/m-p/587460#M167799</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2019-09-10T08:49:21Z</dc:date>
    </item>
  </channel>
</rss>

