<?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: SUM function and missing value in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SUM-function-and-missing-value/m-p/567025#M11426</link>
    <description>&lt;P&gt;Thank you Reeza, that explains it very well!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2019 19:18:35 GMT</pubDate>
    <dc:creator>William_Anthem</dc:creator>
    <dc:date>2019-06-18T19:18:35Z</dc:date>
    <item>
      <title>SUM function and missing value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SUM-function-and-missing-value/m-p/566961#M11406</link>
      <description>&lt;P&gt;Can anyone please clarify the following for me?&amp;nbsp; I have two different answers from certification practice exams and I really don't understand.&amp;nbsp; Example 2 makes sense to me...SUM ignores missing values.&amp;nbsp; But then there's Example 1 that uses SUM but in that one "missing" makes the total SUM missing.&amp;nbsp; Any clarification is greatly appreciated - thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;U&gt;Example 1&lt;/U&gt;&lt;/P&gt;&lt;P&gt;ACredit = . ;&lt;BR /&gt;BCredit = 1;&lt;BR /&gt;TotalCredits = sum (ACredit + BCredit) + 2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; What is the value of TotalCredits?&amp;nbsp; Answer&amp;nbsp;= Missing numeric value&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Explanation: when the SUM function is called with a single argument, it returns the value of that argument. In this case, it is called&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; with a missing value, so it returns a missing value.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;Example 2&lt;/U&gt;&lt;BR /&gt;ACredit = . ;&lt;BR /&gt;BCredit = 1;&lt;BR /&gt;TotalCredits = sum (ACredit, BCredit) + 2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; What is the value of TotalCredits?&amp;nbsp; Answer&amp;nbsp;=&amp;nbsp;3&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Explanation: The SUM statement ignores missing values.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 16:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SUM-function-and-missing-value/m-p/566961#M11406</guid>
      <dc:creator>William_Anthem</dc:creator>
      <dc:date>2019-06-18T16:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: SUM function and missing value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SUM-function-and-missing-value/m-p/566967#M11407</link>
      <description>The ACredit+Bcredit is evaluated first inside the brackets and returns a missing value to SUM() which then returns a missing value again.</description>
      <pubDate>Tue, 18 Jun 2019 16:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SUM-function-and-missing-value/m-p/566967#M11407</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-06-18T16:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: SUM function and missing value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SUM-function-and-missing-value/m-p/567025#M11426</link>
      <description>&lt;P&gt;Thank you Reeza, that explains it very well!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 19:18:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SUM-function-and-missing-value/m-p/567025#M11426</guid>
      <dc:creator>William_Anthem</dc:creator>
      <dc:date>2019-06-18T19:18:35Z</dc:date>
    </item>
  </channel>
</rss>

