<?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: How to expore Invalid Date Values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-expore-Invalid-Date-Values/m-p/725418#M225324</link>
    <description>&lt;P&gt;You will likely have to use a different way to look at that variable as I am pretty sure the resulting SAS data set would have those values missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would select information that identifies the record other than the date, then use a pass through query to create a report from the Oracle data base that should allow you to "see" the resulting date field.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 12:37:04 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-03-11T12:37:04Z</dc:date>
    <item>
      <title>How to expore Invalid Date Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-expore-Invalid-Date-Values/m-p/725415#M225321</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running some ETL routines against an Oracle database via SAS ACCESS&amp;nbsp;ODBC, using PROC SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a datetime field in the source table that contains some invalid values (8 of then according to the log) and I would like to view these in order to provide feedback to the users and get them fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;PRE&gt;proc sql;  
   create table test2 as
   select myDateField as dates 
   from myTableView
   order by dates;
quit;  &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see the following log note:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;The data value for column DATES (DATES) was truncated or was out of range 8 times when&lt;/EM&gt;&lt;/P&gt;
&lt;DIV class="sasNote"&gt;&lt;EM&gt;retrieving that data from the DBMS.&lt;/EM&gt;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;I have tried using the "Put" function, but this also gives an error.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Thansk in advance&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;Jim&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Mar 2021 12:20:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-expore-Invalid-Date-Values/m-p/725415#M225321</guid>
      <dc:creator>Jim_Ogilvie</dc:creator>
      <dc:date>2021-03-11T12:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to expore Invalid Date Values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-expore-Invalid-Date-Values/m-p/725418#M225324</link>
      <description>&lt;P&gt;You will likely have to use a different way to look at that variable as I am pretty sure the resulting SAS data set would have those values missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would select information that identifies the record other than the date, then use a pass through query to create a report from the Oracle data base that should allow you to "see" the resulting date field.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 12:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-expore-Invalid-Date-Values/m-p/725418#M225324</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-11T12:37:04Z</dc:date>
    </item>
  </channel>
</rss>

