<?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: handle missing date in proc sql in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/handle-missing-date-in-proc-sql/m-p/212719#M52542</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Teradata is a RDBMS conforming SQL approaches.&amp;nbsp;&amp;nbsp; The missing approach doesn't exist instead there is a 3 value logic &lt;A href="http://en.wikipedia.org/wiki/Three-valued_logic" title="http://en.wikipedia.org/wiki/Three-valued_logic"&gt;Three-valued logic - Wikipedia, the free encyclopedia&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The NULL is logically not the same as the SAS missing although they are technically mapped. The NULL value is an indicator the field is technically missing caused by eg joins.&lt;/P&gt;&lt;P&gt;Dates within Teradata are stored in a different format. They are stored in binary format but are not as a continues flow (day after day) instead they are using the readable decimal numbers after a conversion for that.&lt;BR /&gt;That is making working with dates using Teradata/SAS intergration very surprising. It is not the same as you were working in a only SAS environment.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 04:54:27 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2015-05-11T04:54:27Z</dc:date>
    <item>
      <title>handle missing date in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/handle-missing-date-in-proc-sql/m-p/212717#M52540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if there is somehting wrong with the code, but I need to omit if date is missing.&amp;nbsp; I am using this code, and getting an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((LN2.close_reason in &lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'AB'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'AM'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'AO'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'AC'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'AR'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;) and ln_close_dt ne &lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 10pt; font-family: Courier New;"&gt;.&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Teradata prepare: Syntax error: expected something between 'ne' and '.'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 01:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/handle-missing-date-in-proc-sql/m-p/212717#M52540</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2015-05-11T01:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: handle missing date in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/handle-missing-date-in-proc-sql/m-p/212718#M52541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try: LN2.close_reason in (&lt;SPAN style="color: #800080; font-family: Courier New; font-size: 10pt;"&gt;'AB'&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-family: Courier New; font-size: 10pt;"&gt;'AM'&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-family: Courier New; font-size: 10pt;"&gt;'AO'&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-family: Courier New; font-size: 10pt;"&gt;'AC'&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-family: Courier New; font-size: 10pt;"&gt;'AR'&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;) and ln_close_dt is not NULL&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 02:03:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/handle-missing-date-in-proc-sql/m-p/212718#M52541</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-05-11T02:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: handle missing date in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/handle-missing-date-in-proc-sql/m-p/212719#M52542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Teradata is a RDBMS conforming SQL approaches.&amp;nbsp;&amp;nbsp; The missing approach doesn't exist instead there is a 3 value logic &lt;A href="http://en.wikipedia.org/wiki/Three-valued_logic" title="http://en.wikipedia.org/wiki/Three-valued_logic"&gt;Three-valued logic - Wikipedia, the free encyclopedia&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The NULL is logically not the same as the SAS missing although they are technically mapped. The NULL value is an indicator the field is technically missing caused by eg joins.&lt;/P&gt;&lt;P&gt;Dates within Teradata are stored in a different format. They are stored in binary format but are not as a continues flow (day after day) instead they are using the readable decimal numbers after a conversion for that.&lt;BR /&gt;That is making working with dates using Teradata/SAS intergration very surprising. It is not the same as you were working in a only SAS environment.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 04:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/handle-missing-date-in-proc-sql/m-p/212719#M52542</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-05-11T04:54:27Z</dc:date>
    </item>
  </channel>
</rss>

