<?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: SAS Enterprise guide 7.1: advanced Expression error (Case When) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550968#M33456</link>
    <description>&lt;P&gt;Dates in SAS are stored as numbers - the number of days after 1 Jan 1960. So a dot works equally well as a constant for checking missing dates.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2019 07:08:27 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-04-15T07:08:27Z</dc:date>
    <item>
      <title>SAS Enterprise guide 7.1: advanced Expression error (Case When)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550963#M33452</link>
      <description>&lt;P&gt;Hello, Am trying to do a new computed column by advanced expression after doing an outer join:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&amp;nbsp;case when t1.'Claim No'n = "" then t2.'Claim No'n else t1.'Claim No'n end " where am asking it to find the value from the first table and if it is blank then take it from the second table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing is it works for variable types that are string, once i tried to use it for Dates or numbers it gave the error message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: Expression using equals (=) has components that are of different data types&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please Advice, thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 05:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550963#M33452</guid>
      <dc:creator>drawerder</dc:creator>
      <dc:date>2019-04-15T05:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise guide 7.1: advanced Expression error (Case When)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550964#M33453</link>
      <description>&lt;P&gt;Try a dot instead of quotes - dot is a missing numeric constant, quotes mean a missing character constant:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;case when t1.'Claim No'n = .&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Apr 2019 05:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550964#M33453</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-04-15T05:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise guide 7.1: advanced Expression error (Case When)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550967#M33455</link>
      <description>&lt;P&gt;Dear SASKIWI,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply, it worked fine with the numeric type. can u advise on what should i use for a &lt;FONT color="#FF0000"&gt;date&lt;/FONT&gt; instead of the ( " " or . )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 06:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550967#M33455</guid>
      <dc:creator>drawerder</dc:creator>
      <dc:date>2019-04-15T06:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise guide 7.1: advanced Expression error (Case When)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550968#M33456</link>
      <description>&lt;P&gt;Dates in SAS are stored as numbers - the number of days after 1 Jan 1960. So a dot works equally well as a constant for checking missing dates.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 07:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550968#M33456</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-04-15T07:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Enterprise guide 7.1: advanced Expression error (Case When)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550970#M33457</link>
      <description>&lt;P&gt;I have begun to use function missing() instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;case when &lt;STRONG&gt;missing(t1.'Claim No'n)&lt;/STRONG&gt; then t2.'Claim No'n else t1.'Claim No'n end&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;//Fredrik&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2019 07:14:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Enterprise-guide-7-1-advanced-Expression-error-Case-When/m-p/550970#M33457</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2019-04-15T07:14:04Z</dc:date>
    </item>
  </channel>
</rss>

