<?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: transferring time data to excel using xls libname in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/transferring-time-data-to-excel-using-xls-libname/m-p/53273#M755</link>
    <description>Thanks for your help.  I did use seconds in the end.</description>
    <pubDate>Fri, 17 Oct 2008 09:07:01 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-10-17T09:07:01Z</dc:date>
    <item>
      <title>transferring time data to excel using xls libname</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/transferring-time-data-to-excel-using-xls-libname/m-p/53271#M753</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to write out a dataset into an excel page using the xls libname.  (First time I've done it).&lt;BR /&gt;
&lt;BR /&gt;
Here is my code:&lt;BR /&gt;
libname xls excel '\\Besrv26\test\template4.xls' scantime=YES;&lt;BR /&gt;
proc datasets lib=xls nolist;&lt;BR /&gt;
delete rawdata;&lt;BR /&gt;
quit;&lt;BR /&gt;
data xls.rawdata;&lt;BR /&gt;
set sums (drop=month);&lt;BR /&gt;
where sumweek=:'02.';&lt;BR /&gt;
run;&lt;BR /&gt;
libname xls clear;&lt;BR /&gt;
&lt;BR /&gt;
My problem is there is a variable which sums up amount of hours worked and it is in time8. format.  It looks fine in my work dataset but then looking in the xls libname it was looking like a date so I added the scantime =YES part.  Only problem is it changed the data for large amount.  E.g. in sums one value is 144:15 but in rawdata it becomes 0:15:53.&lt;BR /&gt;
&lt;BR /&gt;
One thing I have noticed is that for another varable which is number of hours having a break the figures are fine, probably because you are dealing with small numbers. e.g. 0:00:05 transfers fine.  Could it be something to do with the 24 hour clock and it not liking large amounts of hours?&lt;BR /&gt;
&lt;BR /&gt;
Many thanks for your help</description>
      <pubDate>Thu, 09 Oct 2008 14:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/transferring-time-data-to-excel-using-xls-libname/m-p/53271#M753</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-09T14:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: transferring time data to excel using xls libname</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/transferring-time-data-to-excel-using-xls-libname/m-p/53272#M754</link>
      <description>Maybe I misunderstand the symptom you are explaining, however I believe this is inherent with Excel and how it treats discrete time values greater than 23:59:59.00 frankly.  You may want to try using another format, such as seconds in your SAS code.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 09 Oct 2008 15:21:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/transferring-time-data-to-excel-using-xls-libname/m-p/53272#M754</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-10-09T15:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: transferring time data to excel using xls libname</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/transferring-time-data-to-excel-using-xls-libname/m-p/53273#M755</link>
      <description>Thanks for your help.  I did use seconds in the end.</description>
      <pubDate>Fri, 17 Oct 2008 09:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/transferring-time-data-to-excel-using-xls-libname/m-p/53273#M755</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-17T09:07:01Z</dc:date>
    </item>
  </channel>
</rss>

