<?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: proc sql; equivalent of Oracle is Null(A, 'use this when null') in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-equivalent-of-Oracle-is-Null-A-use-this-when-null/m-p/670227#M201156</link>
    <description>&lt;P&gt;IFNULL in SAS as far as I know is restricted to FEDSQL use and not for Proc SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Coalesce functions as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223296"&gt;@mklangley&lt;/a&gt; references will return the left most non-missing value of a list of variables or values (3,4,5 or more) so may be more flexible.&lt;/P&gt;
&lt;P&gt;Coalescec (var1, var2,var3,'result') would 'result' if all of var1 through 3 were missing (or null for those who haven't quite mastered the SAS jargon yet).&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jul 2020 21:01:58 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-07-17T21:01:58Z</dc:date>
    <item>
      <title>proc sql; equivalent of Oracle is Null(A, 'use this when null')</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-equivalent-of-Oracle-is-Null-A-use-this-when-null/m-p/670221#M201154</link>
      <description>&lt;P&gt;What is the SAS proc sql equivalent of the oracle function is null that accepts two parameters the column you are checking and the value to use when null.&amp;nbsp; I found a reference to ifnull() function but when I tried it I got an error.&amp;nbsp; Maybe it's a simple syntax thing.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 20:42:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-equivalent-of-Oracle-is-Null-A-use-this-when-null/m-p/670221#M201154</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2020-07-17T20:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql; equivalent of Oracle is Null(A, 'use this when null')</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-equivalent-of-Oracle-is-Null-A-use-this-when-null/m-p/670223#M201155</link>
      <description>&lt;P&gt;COALESCE() for numeric variables.&amp;nbsp; &amp;nbsp;(e.g. coalesce(numeric_var, 0) )&lt;/P&gt;
&lt;P&gt;COALESCEC() for character variables.&amp;nbsp; &amp;nbsp;(e.g. coalescec(char_var, 'abc') )&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 20:49:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-equivalent-of-Oracle-is-Null-A-use-this-when-null/m-p/670223#M201155</guid>
      <dc:creator>mklangley</dc:creator>
      <dc:date>2020-07-17T20:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql; equivalent of Oracle is Null(A, 'use this when null')</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-equivalent-of-Oracle-is-Null-A-use-this-when-null/m-p/670227#M201156</link>
      <description>&lt;P&gt;IFNULL in SAS as far as I know is restricted to FEDSQL use and not for Proc SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Coalesce functions as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/223296"&gt;@mklangley&lt;/a&gt; references will return the left most non-missing value of a list of variables or values (3,4,5 or more) so may be more flexible.&lt;/P&gt;
&lt;P&gt;Coalescec (var1, var2,var3,'result') would 'result' if all of var1 through 3 were missing (or null for those who haven't quite mastered the SAS jargon yet).&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 21:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-equivalent-of-Oracle-is-Null-A-use-this-when-null/m-p/670227#M201156</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-17T21:01:58Z</dc:date>
    </item>
  </channel>
</rss>

