<?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 The STRIP function call has too many arguments. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/The-STRIP-function-call-has-too-many-arguments/m-p/285855#M58524</link>
    <description>&lt;P&gt;I want to remove leading zero and trailing zero, so I want to modify my variable by doing below:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;var2&amp;nbsp;= strip(var1,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I got the error message: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The STRIP function call has too many arguments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT size="1"&gt;anybody helps to solve this?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT size="1"&gt;thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 16:04:41 GMT</pubDate>
    <dc:creator>Bal23</dc:creator>
    <dc:date>2016-07-20T16:04:41Z</dc:date>
    <item>
      <title>The STRIP function call has too many arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-STRIP-function-call-has-too-many-arguments/m-p/285855#M58524</link>
      <description>&lt;P&gt;I want to remove leading zero and trailing zero, so I want to modify my variable by doing below:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;var2&amp;nbsp;= strip(var1,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'0'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;I got the error message: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The STRIP function call has too many arguments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT size="1"&gt;anybody helps to solve this?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT size="1"&gt;thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 16:04:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-STRIP-function-call-has-too-many-arguments/m-p/285855#M58524</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-07-20T16:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: The STRIP function call has too many arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-STRIP-function-call-has-too-many-arguments/m-p/285859#M58527</link>
      <description>&lt;P&gt;Unfortunately STRIP() does not have that function. For details, please refer &lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n0xk6tl87f4b4qn1sp1ywen1ntan.htm" target="_self"&gt;strip function&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your problems, you can either try using a combination of multiple functions/multiple steps, Or using PRX function in one shot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA HAVE;
INPUT STR $20.;
CARDS;
0012200
00023
22000
200340
;


DATA WANT;
SET HAVE;
NEW_STR=PRXCHANGE('s/^ *0*|0* *$//io', -1, str);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 16:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-STRIP-function-call-has-too-many-arguments/m-p/285859#M58527</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-07-20T16:29:34Z</dc:date>
    </item>
  </channel>
</rss>

