<?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: The Sum summary function requires a numeric argument in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-The-Sum-summary-function-requires-a-numeric-argument/m-p/935836#M367905</link>
    <description>&lt;P&gt;Thank you so much! It works.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2024 16:05:48 GMT</pubDate>
    <dc:creator>Cykelops</dc:creator>
    <dc:date>2024-07-15T16:05:48Z</dc:date>
    <item>
      <title>Error: The Sum summary function requires a numeric argument</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-The-Sum-summary-function-requires-a-numeric-argument/m-p/935830#M367902</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Got this code but unable to debug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select&lt;BR /&gt;waterfall_frb_ny,&lt;BR /&gt;sum (curr_upb_nb) as upb format = comma20.2&lt;BR /&gt;from PledgeDataLoanLevel8 /*** PB HE (MSP156) FRB NY ***/&lt;BR /&gt;group by waterfall_frb_ny&lt;BR /&gt;order by waterfall_frb_ny&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;Cykelops&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 15:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-The-Sum-summary-function-requires-a-numeric-argument/m-p/935830#M367902</guid>
      <dc:creator>Cykelops</dc:creator>
      <dc:date>2024-07-15T15:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error: The Sum summary function requires a numeric argument</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-The-Sum-summary-function-requires-a-numeric-argument/m-p/935832#M367903</link>
      <description>&lt;P&gt;The message is pretty clear.&amp;nbsp; The only SUM() in your code is being applied to&amp;nbsp;curr_upb_nb.&amp;nbsp; So that variable is character, but it would need to be numeric for you to add up the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue is probably in whatever step created the&amp;nbsp;PledgeDataLoanLevel8 dataset.&amp;nbsp; Check that step and make sure that it is defining&amp;nbsp;curr_upb_nb as a number and not a character variable.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 15:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-The-Sum-summary-function-requires-a-numeric-argument/m-p/935832#M367903</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-15T15:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error: The Sum summary function requires a numeric argument</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-The-Sum-summary-function-requires-a-numeric-argument/m-p/935835#M367904</link>
      <description>&lt;P&gt;From the code shown that means that your variable Curr_upb_nb is not numeric.&lt;/P&gt;
&lt;P&gt;Since you apparently updating previous code that may indicate that something changed in the file read to create the dataset. A common issue is using Proc Import to read data sources and someone sneaks in a value like "N/A", "not recorded", "Missing" or similar in some records making Import think the column should be character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may be able to fix &lt;STRONG&gt;this&lt;/STRONG&gt; query by including a conversion to numeric but should go fix the source data set.&lt;/P&gt;
&lt;PRE&gt;proc sql;
   select
   waterfall_frb_ny,
   sum (input(curr_upb_nb, 32.) ) as upb format = comma20.2
   from PledgeDataLoanLevel8 /*** PB HE (MSP156) FRB NY ***/
   group by waterfall_frb_ny
   order by waterfall_frb_ny
;
quit;&lt;/PRE&gt;
&lt;P&gt;This is likely to throw some invalid data messages. If there many then share some examples.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/467272"&gt;@Cykelops&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Got this code but unable to debug.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;select&lt;BR /&gt;waterfall_frb_ny,&lt;BR /&gt;sum (curr_upb_nb) as upb format = comma20.2&lt;BR /&gt;from PledgeDataLoanLevel8 /*** PB HE (MSP156) FRB NY ***/&lt;BR /&gt;group by waterfall_frb_ny&lt;BR /&gt;order by waterfall_frb_ny&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please help.&lt;/P&gt;
&lt;P&gt;Cykelops&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 15:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-The-Sum-summary-function-requires-a-numeric-argument/m-p/935835#M367904</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-15T15:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error: The Sum summary function requires a numeric argument</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-The-Sum-summary-function-requires-a-numeric-argument/m-p/935836#M367905</link>
      <description>&lt;P&gt;Thank you so much! It works.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2024 16:05:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-The-Sum-summary-function-requires-a-numeric-argument/m-p/935836#M367905</guid>
      <dc:creator>Cykelops</dc:creator>
      <dc:date>2024-07-15T16:05:48Z</dc:date>
    </item>
  </channel>
</rss>

