<?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: Where clause with missing dates in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389082#M93297</link>
    <description>&lt;P&gt;when i try this, i get the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI describe error: [IBM][CLI Driver][DB2/AIX64] SQL0104N An unexpected token&lt;/P&gt;&lt;P&gt;"missing" was found following "E CU.DEATH_DT is not". Expected tokens may include:&lt;/P&gt;&lt;P&gt;"&amp;lt;search_condition&amp;gt;". SQLSTATE=42601&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 10:56:48 GMT</pubDate>
    <dc:creator>Bellefeuille</dc:creator>
    <dc:date>2017-08-18T10:56:48Z</dc:date>
    <item>
      <title>Where clause with missing dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389022#M93275</link>
      <description>&lt;P&gt;Good Evenening,&lt;/P&gt;&lt;P&gt;Appreciate all the help in learning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Love sas!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to create a mail list, and in order for myself to do this, i need search for NOT null values in the death_Dt field,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried NE. and &amp;lt;&amp;gt;"."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but its not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;SASTABLE&lt;/I&gt;&lt;/STRONG&gt;(ONE.CUST,&lt;/P&gt;&lt;P&gt;SELECT CU.CUST_ID&lt;/P&gt;&lt;P&gt;,CU.death_dt&lt;/P&gt;&lt;P&gt;, MAFOCU.FIRST_NA&lt;/P&gt;&lt;P&gt;, MAFOCU.LAST_NA&lt;/P&gt;&lt;P&gt;, MAFOCU.CUST_TYPE_MN&lt;/P&gt;&lt;P&gt;, MAFOCU.FULL_BUSNES_NA1&lt;/P&gt;&lt;P&gt;, MAFOCU.CONTRY_MN&lt;/P&gt;&lt;P&gt;, MAFOCU.MAIL_ROUTE_CD&lt;/P&gt;&lt;P&gt;, MAFOCU.FORMAT_ATTN_LINE_TX&lt;/P&gt;&lt;P&gt;, MAFOCU.FORMAT_SPECL_ADDR_TX&lt;/P&gt;&lt;P&gt;, MAFOCU.FORMAT_STREET_ADDR_TX&lt;/P&gt;&lt;P&gt;, MAFOCU.FORMAT_MNCPTY_ADDR_TX&lt;/P&gt;&lt;P&gt;FROM EDW.CUST CU&lt;/P&gt;&lt;P&gt;JOIN EDW.MAIL_FORMAT_CURRNT MAFOCU&lt;/P&gt;&lt;P&gt;ON MAFOCU.CUST_ID = CU.CUST_ID&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;WHERE (CU.DEATH_DT &amp;lt;&amp;gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;endrsubmit&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 02:31:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389022#M93275</guid>
      <dc:creator>Bellefeuille</dc:creator>
      <dc:date>2017-08-18T02:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause with missing dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389023#M93276</link>
      <description>&lt;P&gt;I could not understand how SQL query being used in SASTABLE &amp;nbsp;macro but if I only focus on the SQL query it looks okay to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are doing inner join and also applied where filter condition. It seems okay to me. You can check whether DEATH_DT column is numeric in the source table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 02:51:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389023#M93276</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2017-08-18T02:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause with missing dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389024#M93277</link>
      <description>&lt;P&gt;the joins work, and if i search for a specific CUSt_ID,&amp;nbsp; i get obs, but i only want obs if death_DT is empty, and it seems that null values in the date field are represented as a period.?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 02:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389024#M93277</guid>
      <dc:creator>Bellefeuille</dc:creator>
      <dc:date>2017-08-18T02:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause with missing dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389025#M93278</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%SASTABLE(ONE.CUST,
SELECT 
  CU.CUST_ID
, CU.death_dt
, MAFOCU.FIRST_NA
, MAFOCU.LAST_NA
, MAFOCU.CUST_TYPE_MN
, MAFOCU.FULL_BUSNES_NA1
, MAFOCU.CONTRY_MN
, MAFOCU.MAIL_ROUTE_CD
, MAFOCU.FORMAT_ATTN_LINE_TX
, MAFOCU.FORMAT_SPECL_ADDR_TX
, MAFOCU.FORMAT_STREET_ADDR_TX
, MAFOCU.FORMAT_MNCPTY_ADDR_TX
FROM 
  EDW.CUST as CU inner JOIN 
  EDW.MAIL_FORMAT_CURRNT as MAFOCU
ON MAFOCU.CUST_ID = CU.CUST_ID
WHERE CU.DEATH_DT is not missing);
endrsubmit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2017 03:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389025#M93278</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-08-18T03:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause with missing dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389082#M93297</link>
      <description>&lt;P&gt;when i try this, i get the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI describe error: [IBM][CLI Driver][DB2/AIX64] SQL0104N An unexpected token&lt;/P&gt;&lt;P&gt;"missing" was found following "E CU.DEATH_DT is not". Expected tokens may include:&lt;/P&gt;&lt;P&gt;"&amp;lt;search_condition&amp;gt;". SQLSTATE=42601&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 10:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389082#M93297</guid>
      <dc:creator>Bellefeuille</dc:creator>
      <dc:date>2017-08-18T10:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause with missing dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389083#M93298</link>
      <description>&lt;P&gt;Try using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;WHERE&lt;/SPAN&gt; CU&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DEATH_DT is &lt;SPAN class="token operator"&gt;not&lt;/SPAN&gt; null&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2017 11:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389083#M93298</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2017-08-18T11:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Where clause with missing dates</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389121#M93303</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1751"&gt;@RahulG&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Try using&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;WHERE&lt;/SPAN&gt; CU&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;DEATH_DT is &lt;SPAN class="token operator"&gt;not&lt;/SPAN&gt; null&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;Where not missing(Cu.Death_DT)&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 14:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-clause-with-missing-dates/m-p/389121#M93303</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-18T14:58:14Z</dc:date>
    </item>
  </channel>
</rss>

