<?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: TRIM Function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650816#M195191</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132557"&gt;@iSAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'll try. thank you. may I know why my script isn't working? &lt;STRONG&gt;it's the same in sas documentation&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Absolutely NOT. Show the "documentation" where you found this "code":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select trim(leading 'A' from column1) from table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 26 May 2020 16:03:20 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-05-26T16:03:20Z</dc:date>
    <item>
      <title>TRIM Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650797#M195183</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm having an issue with the code below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select trim(leading 'A' from column1) from table;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mya I know what I missed? In SAS documentation it seems that my script is correct but it still throws an error.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 15:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650797#M195183</guid>
      <dc:creator>iSAS</dc:creator>
      <dc:date>2020-05-26T15:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650799#M195185</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132557"&gt;@iSAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean that you want to remove leading 'A's from a character variable? Is that correct?&lt;/P&gt;
&lt;P&gt;If so, you can use the following approach:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	col1 = 'AAAtriAtriAA';
	col2 = substr(col1,verify(col1,'A'));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 15:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650799#M195185</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-26T15:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650800#M195186</link>
      <description>yes</description>
      <pubDate>Tue, 26 May 2020 15:16:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650800#M195186</guid>
      <dc:creator>iSAS</dc:creator>
      <dc:date>2020-05-26T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650802#M195187</link>
      <description>&lt;P&gt;OK, in this case pleas try the code in previous post, using the VERIFY function.&lt;/P&gt;
&lt;P&gt;This function r&lt;SPAN&gt;eturns the position of the first character in a string that is not in any of several other strings.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 15:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650802#M195187</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-26T15:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650803#M195188</link>
      <description>&lt;P&gt;I'll try. thank you. may I know why my script isn't working? it's the same in sas documentation&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 15:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650803#M195188</guid>
      <dc:creator>iSAS</dc:creator>
      <dc:date>2020-05-26T15:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650812#M195190</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132557"&gt;@iSAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'll try. thank you. may I know why my script isn't working? it's the same in sas documentation&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please post a link to the page. It appears that you are using the FedSQL version of Trim and not the basic SAS version of Trim function. You should be either using Proc FEDSQL (instead of Proc Sql) or pass through code to another DBMS (maybe) with the example version..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately in some of the help the FedSQL or DS2 functions appear before the base SAS functions and they sometimes behave differently because of the connections to other data systems they are intended to support.&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, 26 May 2020 16:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650812#M195190</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-05-26T16:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM Function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650816#M195191</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/132557"&gt;@iSAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'll try. thank you. may I know why my script isn't working? &lt;STRONG&gt;it's the same in sas documentation&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Absolutely NOT. Show the "documentation" where you found this "code":&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select trim(leading 'A' from column1) from table;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 May 2020 16:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TRIM-Function/m-p/650816#M195191</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-26T16:03:20Z</dc:date>
    </item>
  </channel>
</rss>

