<?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/429666#M106142</link>
    <description>&lt;P&gt;Wrong proc! The function you are trying to use is part of proc fedql. For, example, try the following:&lt;/P&gt;
&lt;PRE&gt;data afewords;&lt;BR /&gt; input Word1$ Word2$ ;&lt;BR /&gt; cards;&lt;BR /&gt;*some/ WHERE&lt;BR /&gt;*every* THING&lt;BR /&gt;*no* BODY&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;proc print data=afewords;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc fedsql;&lt;BR /&gt; select trim(both '*' from strip(word1))&lt;BR /&gt; from afewords&lt;BR /&gt; ;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;proc fedsql;&lt;BR /&gt; select trim(leading '*' from strip(word1))&lt;BR /&gt; from afewords&lt;BR /&gt; ;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;proc fedsql;&lt;BR /&gt; select trim(trailing '*' from strip(word1))&lt;BR /&gt; from afewords&lt;BR /&gt; ;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2018 16:26:36 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2018-01-22T16:26:36Z</dc:date>
    <item>
      <title>trim function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/trim-function/m-p/429657#M106140</link>
      <description>&lt;P&gt;Hello all, thanks for the previous replies.The following statements of trim function are from sas Help and Documentation example in sas9.4, but it gives me error any help is appreciated to remove the errors.&lt;BR /&gt;data afewords;&lt;BR /&gt;input Word1$ Word2$ ;&lt;BR /&gt;cards;&lt;BR /&gt;*some/ WHERE&lt;BR /&gt;*every* THING&lt;BR /&gt;*no* BODY&lt;BR /&gt;;&lt;BR /&gt;proc print data=afewords;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select trim(both '*' from word1) from afewords;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select trim(leading '*' from word1) from afewords;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select trim(trailing '*' from word1) from afewords;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 15:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/trim-function/m-p/429657#M106140</guid>
      <dc:creator>fatemeh</dc:creator>
      <dc:date>2018-01-22T15:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: trim function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/trim-function/m-p/429666#M106142</link>
      <description>&lt;P&gt;Wrong proc! The function you are trying to use is part of proc fedql. For, example, try the following:&lt;/P&gt;
&lt;PRE&gt;data afewords;&lt;BR /&gt; input Word1$ Word2$ ;&lt;BR /&gt; cards;&lt;BR /&gt;*some/ WHERE&lt;BR /&gt;*every* THING&lt;BR /&gt;*no* BODY&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;proc print data=afewords;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc fedsql;&lt;BR /&gt; select trim(both '*' from strip(word1))&lt;BR /&gt; from afewords&lt;BR /&gt; ;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;proc fedsql;&lt;BR /&gt; select trim(leading '*' from strip(word1))&lt;BR /&gt; from afewords&lt;BR /&gt; ;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;proc fedsql;&lt;BR /&gt; select trim(trailing '*' from strip(word1))&lt;BR /&gt; from afewords&lt;BR /&gt; ;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 16:26:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/trim-function/m-p/429666#M106142</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-01-22T16:26:36Z</dc:date>
    </item>
  </channel>
</rss>

