<?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: Inputing dates from excel. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67705#M14665</link>
    <description>should be automatic&lt;BR /&gt;
by what method is your SAS reading excel?</description>
    <pubDate>Tue, 01 Feb 2011 14:29:05 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2011-02-01T14:29:05Z</dc:date>
    <item>
      <title>Inputing dates from excel.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67704#M14664</link>
      <description>Hello. Prompt, please. How to input date from excel if it is displayed there in an excel format?</description>
      <pubDate>Tue, 01 Feb 2011 09:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67704#M14664</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-01T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Inputing dates from excel.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67705#M14665</link>
      <description>should be automatic&lt;BR /&gt;
by what method is your SAS reading excel?</description>
      <pubDate>Tue, 01 Feb 2011 14:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67705#M14665</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-02-01T14:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inputing dates from excel.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67706#M14666</link>
      <description>Here an example:&lt;BR /&gt;
&lt;BR /&gt;
options noxwait noxsync;&lt;BR /&gt;
x 'c:\data.xls';&lt;BR /&gt;
filename data dde 'excel|Sheet1!r1c1:r5c3';&lt;BR /&gt;
&lt;BR /&gt;
data set1;&lt;BR /&gt;
infile data;&lt;BR /&gt;
input x y date;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
If in excel dates are in sas format, that is corresponding numbers it is wonderful.&lt;BR /&gt;
But what to do if they are in excel format?</description>
      <pubDate>Tue, 01 Feb 2011 14:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67706#M14666</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-01T14:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inputing dates from excel.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67707#M14667</link>
      <description>if your dde connection has to "input" the values, try informat anydtdte.&lt;BR /&gt;
If it reads just a number, then the excel date basis is number oif days since the beginning of 1900, so the conversion in a SAS data step is&lt;BR /&gt;
sas_date = (excel date as number) - '1Jan1900'd ;&lt;BR /&gt;
(perhaps a day or two out as Microsoft treats 29-Feb-1900 as valid)</description>
      <pubDate>Tue, 01 Feb 2011 15:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67707#M14667</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-02-01T15:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Inputing dates from excel.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67708#M14668</link>
      <description>don't work with informat anydtdte</description>
      <pubDate>Wed, 02 Feb 2011 07:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67708#M14668</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-02T07:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Inputing dates from excel.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67709#M14669</link>
      <description>Curious to know why you are using DDE as compared to say PROC IMPORT where dates are handled automatically.</description>
      <pubDate>Wed, 02 Feb 2011 21:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67709#M14669</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2011-02-02T21:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Inputing dates from excel.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67710#M14670</link>
      <description>I agree. I'm not sure why you would use DDE for such a simple table instead of PROC IMPORT or the SAS Excel LIBNAME engine.&lt;BR /&gt;
 &lt;BR /&gt;
The worst case scenario if you import a date (using import methods) that is not defined as an Excel date field is that you would have to adjust the value, as explained in this note:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/41/000.html" target="_blank"&gt;http://support.sas.com/kb/41/000.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Usually, you can tell whether you need an adjustment because the dates, when imported, will be approximately 60 years off from what you expect.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 02 Feb 2011 22:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67710#M14670</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-02-02T22:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: Inputing dates from excel.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67711#M14671</link>
      <description>I read several tables from one sheet. I didn't know that it can be done with the help of proc import. Now I know it and my program works.&lt;BR /&gt;
Thanks.</description>
      <pubDate>Thu, 03 Feb 2011 14:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Inputing-dates-from-excel/m-p/67711#M14671</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-03T14:24:10Z</dc:date>
    </item>
  </channel>
</rss>

