<?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 PROC SQL Case Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Case-Statement/m-p/603140#M174730</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following Case Statement but it doesn't seem to be working as I get the same output for each row ('Exclude') and I think it's due to not understanding 'NULL'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case when Curr_Order &amp;lt;&amp;gt; 'null ' and Prev_Order = 'Null' then 'Include' else 'Exclude' end as Order_test&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea how I could resolve this please?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2019 10:29:56 GMT</pubDate>
    <dc:creator>KC_16</dc:creator>
    <dc:date>2019-11-11T10:29:56Z</dc:date>
    <item>
      <title>PROC SQL Case Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Case-Statement/m-p/603140#M174730</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the following Case Statement but it doesn't seem to be working as I get the same output for each row ('Exclude') and I think it's due to not understanding 'NULL'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;case when Curr_Order &amp;lt;&amp;gt; 'null ' and Prev_Order = 'Null' then 'Include' else 'Exclude' end as Order_test&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea how I could resolve this please?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 10:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Case-Statement/m-p/603140#M174730</guid>
      <dc:creator>KC_16</dc:creator>
      <dc:date>2019-11-11T10:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Case Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Case-Statement/m-p/603142#M174732</link>
      <description>&lt;P&gt;1) Use &lt;STRONG&gt;ne &lt;/STRONG&gt;instead of &amp;lt;&amp;gt;. &amp;lt;&amp;gt; returns the smallest of two arguments. See this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    a= 1 &amp;lt;&amp;gt; 10;
    put a;

    b=1 &amp;gt;&amp;lt; 10;
    put b;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2) Does your data contain the string 'Null'/'null' or are you talking about missing values?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 10:40:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Case-Statement/m-p/603142#M174732</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-11T10:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Case Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Case-Statement/m-p/603144#M174733</link>
      <description>&lt;P&gt;Thank you, I have changed to 'ne'.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data is blank, no values in there so technically missing data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 10:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Case-Statement/m-p/603144#M174733</guid>
      <dc:creator>KC_16</dc:creator>
      <dc:date>2019-11-11T10:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SQL Case Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Case-Statement/m-p/603145#M174734</link>
      <description>&lt;P&gt;ok. Either use blanks instead of 'Null' then or use the &lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p06ybg84o0asa4n17l9ieauk58hb.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;Missing Function&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 11:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-Case-Statement/m-p/603145#M174734</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-11-11T11:13:37Z</dc:date>
    </item>
  </channel>
</rss>

