<?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: excel to sas date issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75605#M16299</link>
    <description>8/5/2009  5:22:59 PM ..this is how the data is entered in excel, but we see it as 08/05/2009.in sas it gets converted as 40030.724294</description>
    <pubDate>Tue, 13 Oct 2009 16:51:28 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2009-10-13T16:51:28Z</dc:date>
    <item>
      <title>excel to sas date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75601#M16295</link>
      <description>the date in excel is  08/05/2009 when and it gets converted as 40030.724294 in SAS.This is strange!</description>
      <pubDate>Tue, 13 Oct 2009 14:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75601#M16295</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-10-13T14:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: excel to sas date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75602#M16296</link>
      <description>I agree, very odd.  40030 is actually that SAS date for 08/06/2069 which ia a little too similar to 08/05/2009 for me to think it is just coincidence.  Is there anything else you can offer to help explain this?&lt;BR /&gt;
--------------------------------------------------&lt;BR /&gt;
data _null_;&lt;BR /&gt;
  a = 40030;&lt;BR /&gt;
  format a YYMMDD10.;&lt;BR /&gt;
  put a;&lt;BR /&gt;
run;&lt;BR /&gt;
-------------------------------&lt;BR /&gt;
2069-08-06</description>
      <pubDate>Tue, 13 Oct 2009 15:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75602#M16296</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2009-10-13T15:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: excel to sas date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75603#M16297</link>
      <description>well..I'm just using the folliwng code:and it results in the date conversion.&lt;BR /&gt;
I even tried the proc import and it resulted the same.&lt;BR /&gt;
%macro test;&lt;BR /&gt;
proc sql;&lt;BR /&gt;
 connect to excel (path="&amp;amp;inpt.\Walgreens 2009 08.xls"&lt;BR /&gt;
                   header=no mixed=yes );&lt;BR /&gt;
&lt;BR /&gt;
 create table walgreens as&lt;BR /&gt;
  select * from connection to excel &lt;BR /&gt;
 (select * from [%sysfunc(dequote(%superQ(wksht)))]);&lt;BR /&gt;
     disconnect from excel;&lt;BR /&gt;
quit;&lt;BR /&gt;
%mend test;&lt;BR /&gt;
%test;</description>
      <pubDate>Tue, 13 Oct 2009 15:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75603#M16297</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-10-13T15:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: excel to sas date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75604#M16298</link>
      <description>I would check the Excel table to make sure that all of the dates in that column are entered in the same manner.  If they have different formats, that might explain this.  If not, I think I would give this one to tech support.</description>
      <pubDate>Tue, 13 Oct 2009 15:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75604#M16298</guid>
      <dc:creator>CurtisMack</dc:creator>
      <dc:date>2009-10-13T15:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: excel to sas date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75605#M16299</link>
      <description>8/5/2009  5:22:59 PM ..this is how the data is entered in excel, but we see it as 08/05/2009.in sas it gets converted as 40030.724294</description>
      <pubDate>Tue, 13 Oct 2009 16:51:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75605#M16299</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-10-13T16:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: excel to sas date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75606#M16300</link>
      <description>sounds like SAS is reading the internal exccel value, without recognising the datatype and .applying the standard adjustment (1/1/1960-1/1/1900 with the fraction representing the fraction of the day at the time point.&lt;BR /&gt;
Although we can fix it, I hope SAS Customer Support can provide the option to enable appropriate conversion to be automatic</description>
      <pubDate>Wed, 14 Oct 2009 06:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75606#M16300</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-10-14T06:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: excel to sas date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75607#M16301</link>
      <description>if index(name,'Novo Distribution')&lt;BR /&gt;
&lt;BR /&gt;
Can we make the search not case sensitive?&lt;BR /&gt;
Like if the argument-2 here 'Novo Distribution' can be in any case.</description>
      <pubDate>Wed, 14 Oct 2009 14:06:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75607#M16301</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-10-14T14:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: excel to sas date issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75608#M16302</link>
      <description>you can apply the upcase() or lowcase() functions to the NAME variable and test against the relevant constant, but you can adapt the FIND() function:&lt;BR /&gt;
for case insensitive FIND see it's on-line doc (even available for SAS913 at &lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a002267763.htm#a002504497" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a002267763.htm#a002504497&lt;/A&gt; )&lt;BR /&gt;
 &lt;BR /&gt;
PeterC

Message was edited by: Peter.C</description>
      <pubDate>Wed, 14 Oct 2009 14:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-to-sas-date-issue/m-p/75608#M16302</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-10-14T14:55:42Z</dc:date>
    </item>
  </channel>
</rss>

