<?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: ERROR 72-185: The ABS function call has too many arguments. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453331#M69872</link>
    <description>&lt;P&gt;Thank you all. It worked after removing the comma.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 18:29:14 GMT</pubDate>
    <dc:creator>TX_STAR</dc:creator>
    <dc:date>2018-04-11T18:29:14Z</dc:date>
    <item>
      <title>ERROR 72-185: The ABS function call has too many arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/452995#M69848</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I am running the following code but SAS gave the error note:&lt;/P&gt;
&lt;P&gt;ERROR 72-185: The ABS function call has too many arguments.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data scfile1_;&lt;BR /&gt;set scfile1;&lt;BR /&gt;length cut_Label $40 ;&lt;BR /&gt;cut_Label=' ';&lt;BR /&gt;cut2015_Dif=round(abs(&amp;amp;cut2015.-ScaleS),.001);&lt;BR /&gt;cut2016_Dif=round(abs(&amp;amp;cut2016.-ScaleS), .001);&lt;BR /&gt;cut2022_Dif=round(abs(&amp;amp;cut2022.-ScaleS), .001);&lt;BR /&gt;cutIII_Dif=round(abs(&amp;amp;cutIII.-ScaleS), .001);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran same code in similar procedures using similar data, there wasn't any problem. I don't know why it happens to this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;ZL&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 23:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/452995#M69848</guid>
      <dc:creator>TX_STAR</dc:creator>
      <dc:date>2018-04-10T23:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 72-185: The ABS function call has too many arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453003#M69849</link>
      <description>&lt;P&gt;And what exactly&amp;nbsp;are the values of the &amp;amp;cut2015, &amp;amp;cut2016, &amp;amp;cut2022 and &amp;amp;cutIII&amp;nbsp;&amp;nbsp;macro variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likely that&amp;nbsp;one of those is&amp;nbsp;the culprit but you didn't show&amp;nbsp;the macro value&amp;nbsp;or the actual log.&lt;/P&gt;
&lt;P&gt;Best would be to run:&lt;/P&gt;
&lt;P&gt;options mprint symbolgen;&lt;/P&gt;
&lt;P&gt;&amp;lt;your code&amp;gt;&lt;/P&gt;
&lt;P&gt;and post the result from log including the generated macro resolution and the error message into a code box opened here with the forum {I} menu icon.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 23:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453003#M69849</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-10T23:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 72-185: The ABS function call has too many arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453006#M69850</link>
      <description>&lt;P&gt;Hi ballardw,&lt;/P&gt;
&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;Is it because the formats of values that the macro variables resolves to, 2000, 2,500, 3,000, 3,500?&lt;/P&gt;
&lt;P&gt;2000 was treated as number as it worked in the this piece of code:&amp;nbsp;&lt;SPAN&gt;cut2015_Dif=round(abs(&amp;amp;cut2015.-ScaleS),.001);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;2,500, 3,000, 3,500 did not work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is the code and log&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sql noprint;&lt;/P&gt;
&lt;P&gt;select cut2015 into :cut2015 from standards;&lt;BR /&gt;select cut2016 into :cut2016 from standards;&lt;BR /&gt;select cut2022 into :cut2022 from standards;&lt;BR /&gt;select cutIII into :cutIII from standards;&lt;BR /&gt;quit;&lt;BR /&gt;%put ***** cut2015 is:&amp;amp;cut2015.;&lt;BR /&gt;%put ***** cut2016 is:&amp;amp;cut2016.;&lt;BR /&gt;%put ***** cut2022 is:&amp;amp;cut2022.;&lt;BR /&gt;%put ***** cutIII is:&amp;amp;cutIII.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data scfile1_;&lt;BR /&gt;set scfile1;&lt;BR /&gt;length cut_Label $40 ;&lt;BR /&gt;cut_Label='';&lt;BR /&gt;cut2015_Dif=round(abs(&amp;amp;cut2015.-ScaleS),.001);&lt;BR /&gt;cut2016_Dif=round(abs(&amp;amp;cut2016.-ScaleS), .001);&lt;BR /&gt;cut2022_Dif=round(abs(&amp;amp;cut2022.-ScaleS), .001);&lt;BR /&gt;cutIII_Dif=round(abs(&amp;amp;cutIII.-ScaleS), .001);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;****log---------------------------------------------------------------;&lt;/P&gt;
&lt;P&gt;1393 proc sql noprint;&lt;BR /&gt;1394&lt;BR /&gt;1395 select cut2015 into :cut2015 from standards;&lt;BR /&gt;1396 select cut2016 into :cut2016 from standards;&lt;BR /&gt;1397 select cut2022 into :cut2022 from standards;&lt;BR /&gt;1398 select cutIII into :cutIII from standards;&lt;BR /&gt;1399 quit;&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt; real time 0.00 seconds&lt;BR /&gt; cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;SYMBOLGEN: Macro variable CUT2015 resolves to&amp;nbsp;2000&lt;BR /&gt;1400 %put ***** cut2015 is:&amp;amp;cut2015.;&lt;BR /&gt;***** cut2015 is:2000&lt;BR /&gt;1401 %put ***** cut2016 is:&amp;amp;cut2016.;&lt;BR /&gt;SYMBOLGEN: Macro variable CUT2016 resolves to 2,500&lt;BR /&gt;***** cut2016 is: 2,500&lt;BR /&gt;1402 %put ***** cut2022 is:&amp;amp;cut2022.;&lt;BR /&gt;SYMBOLGEN: Macro variable CUT2022 resolves to 3,000&lt;BR /&gt;***** cut2022 is:3,000&lt;BR /&gt;1403 %put ***** cutIII is:&amp;amp;cutIII.;&lt;BR /&gt;SYMBOLGEN: Macro variable CUTIII resolves to 3,500&lt;BR /&gt;***** cutIII is: 3,500&lt;BR /&gt;1404&lt;BR /&gt;1405 data scfile1_;&lt;BR /&gt;1406 set scfile1;&lt;BR /&gt;1407 length cut_Label $40 ;&lt;BR /&gt;1408 cut_Label='';&lt;BR /&gt;1409 cut2015_Dif=round(abs(&amp;amp;cut2015.-ScaleS),.001);&lt;BR /&gt;SYMBOLGEN: Macro variable CUT2015 resolves to&amp;nbsp;2000&lt;BR /&gt;1410 cut2016_Dif=round(abs(&amp;amp;cut2016.-ScaleS), .001);&lt;BR /&gt;SYMBOLGEN: Macro variable CUT2016 resolves to 2,500&lt;BR /&gt;1410 cut2016_Dif=round(abs(&amp;amp;cut2016.-ScaleS), .001);&lt;BR /&gt; ---&lt;BR /&gt; 72&lt;BR /&gt;ERROR 72-185: The ABS function call has too many arguments.&lt;/P&gt;
&lt;P&gt;1411 cut2022_Dif=round(abs(&amp;amp;cut2022.-ScaleS), .001);&lt;BR /&gt;SYMBOLGEN: Macro variable CUT2022 resolves to 3,000&lt;BR /&gt;1411 cut2022_Dif=round(abs(&amp;amp;cut2022.-ScaleS), .001);&lt;BR /&gt; ---&lt;BR /&gt; 72&lt;BR /&gt;ERROR 72-185: The ABS function call has too many arguments.&lt;/P&gt;
&lt;P&gt;1412 cutIII_Dif=round(abs(&amp;amp;cutIII.-ScaleS), .001);&lt;BR /&gt;SYMBOLGEN: Macro variable CUTIII resolves to 3,500&lt;BR /&gt;1412 cutIII_Dif=round(abs(&amp;amp;cutIII.-ScaleS), .001);&lt;BR /&gt; ---&lt;BR /&gt; 72&lt;BR /&gt;ERROR 72-185: The ABS function call has too many arguments.&lt;/P&gt;
&lt;P&gt;1413&lt;BR /&gt;1414 run;&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.SCFILE1_ may be incomplete. When this step was stopped there were 0&lt;BR /&gt; observations and 12 variables.&lt;BR /&gt;WARNING: Data set WORK.SCFILE1_ was not replaced because this step was stopped.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt; real time 0.02 seconds&lt;BR /&gt; cpu time 0.04 seconds&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 23:40:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453006#M69850</guid>
      <dc:creator>TX_STAR</dc:creator>
      <dc:date>2018-04-10T23:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 72-185: The ABS function call has too many arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453010#M69851</link>
      <description>&lt;P&gt;Remove the commas from your macro variables. SAS is treating these as the boundary for a new argument to the ABS function.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 00:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453010#M69851</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-04-11T00:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 72-185: The ABS function call has too many arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453015#M69853</link>
      <description>&lt;P&gt;abs(2000) -&amp;gt;This works&lt;/P&gt;
&lt;P&gt;abs(2,000) -&amp;gt; this errors with too many arguments.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Difference is the comma -&amp;gt; remove the comma.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 00:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453015#M69853</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-11T00:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 72-185: The ABS function call has too many arguments.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453331#M69872</link>
      <description>&lt;P&gt;Thank you all. It worked after removing the comma.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 18:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-72-185-The-ABS-function-call-has-too-many-arguments/m-p/453331#M69872</guid>
      <dc:creator>TX_STAR</dc:creator>
      <dc:date>2018-04-11T18:29:14Z</dc:date>
    </item>
  </channel>
</rss>

