<?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 2016 time field to sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/358886#M274447</link>
    <description>I have converted .xlsx to .xls&lt;BR /&gt;&lt;BR /&gt;Will try as per your suggestion&lt;BR /&gt;&lt;BR /&gt;Thanks much</description>
    <pubDate>Tue, 16 May 2017 02:13:27 GMT</pubDate>
    <dc:creator>sbunny364</dc:creator>
    <dc:date>2017-05-16T02:13:27Z</dc:date>
    <item>
      <title>excel 2016 time field to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/358882#M274445</link>
      <description>&lt;P&gt;experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my time variable looks like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;8:42:00&lt;/P&gt;&lt;P&gt;13:07:00&lt;/P&gt;&lt;P&gt;12:30:00&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;i am importing the excel file and converting to sas datasets using proc import and some how sas is displaying as&amp;nbsp;30DEC1899 in most of the observations and few other dates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile="location."&lt;BR /&gt;out=outlocation&lt;BR /&gt;dbms=excel replace;&lt;BR /&gt;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;mixed=no;&lt;BR /&gt;scantext=&lt;SPAN&gt;yes&lt;/SPAN&gt;;&lt;BR /&gt;usedate=&lt;SPAN&gt;yes&lt;/SPAN&gt;;&lt;BR /&gt;scantime=&lt;SPAN&gt;yes&lt;/SPAN&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to read the excel file time variable into sas exactly as i pasted above and the file is .xls format (2016 excel).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;sunny&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 01:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/358882#M274445</guid>
      <dc:creator>sbunny364</dc:creator>
      <dc:date>2017-05-16T01:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: excel 2016 time field to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/358884#M274446</link>
      <description>&lt;P&gt;Did Excel revert back to XLS in 2016?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try removing the Usedate option unless you need it. Ensure the variable has the correct format in SAS - proc import guesses - and not always correctly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A SAS time is number of seconds, so without a format it should appear as an integer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 01:55:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/358884#M274446</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-16T01:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: excel 2016 time field to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/358886#M274447</link>
      <description>I have converted .xlsx to .xls&lt;BR /&gt;&lt;BR /&gt;Will try as per your suggestion&lt;BR /&gt;&lt;BR /&gt;Thanks much</description>
      <pubDate>Tue, 16 May 2017 02:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/358886#M274447</guid>
      <dc:creator>sbunny364</dc:creator>
      <dc:date>2017-05-16T02:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: excel 2016 time field to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/358890#M274448</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/143890"&gt;@sbunny364&lt;/a&gt; wrote:&lt;BR /&gt;I have converted .xlsx to .xls&lt;BR /&gt;&lt;BR /&gt;Will try as per your suggestion&lt;BR /&gt;&lt;BR /&gt;Thanks much&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Why? Try the XLSX file using DBMS=XLSX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the file is XLS its Excel 95-ish not Excel 2016.&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 02:17:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/358890#M274448</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-05-16T02:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: excel 2016 time field to sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/359188#M274449</link>
      <description>&lt;P&gt;it looks like in the excel ...one of the values is being entered as date and the rest are time ...so SAS is reading all the values &amp;nbsp;as date ...just figured it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you reeza&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 20:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/excel-2016-time-field-to-sas/m-p/359188#M274449</guid>
      <dc:creator>sbunny364</dc:creator>
      <dc:date>2017-05-16T20:23:05Z</dc:date>
    </item>
  </channel>
</rss>

