<?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: Problem of use libname to associate excel in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92275#M26268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try some option similar to proc import ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname x excel 'c:\xx.xls' scantext=yes mixed=yes;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2012 04:11:24 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2012-08-14T04:11:24Z</dc:date>
    <item>
      <title>Problem of use libname to associate excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92271#M26264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Excel file named ALL, and sheet named SHEET1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not like using proc import ,,,when I use libname to connect excel file to SAS such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname xl Excel "C:\Temp\ALL.xls"; I can get a SAS dataset xl.SHEET1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUT&lt;/STRONG&gt; if the first 8 obs of a column is empty, then this column will be set to length $1. and all the numeric value of this column will be set to empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I still want to use libname I have to set a value in the first 8 obs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me some suggestion on it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 19:59:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92271#M26264</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-13T19:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of use libname to associate excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92272#M26265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a bit messy, but fortunately, you will have to do this only once. The problem lies with the number of lines that Excel scans to determine the properties of columns. You must change the TypeGuessRows entry in Windows registry. This is described on page 36 of the document :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/acpcref/63184/PDF/default/acpcref.pdf"&gt;http://support.sas.com/documentation/cdl/en/acpcref/63184/PDF/default/acpcref.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 20:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92272#M26265</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-08-13T20:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of use libname to associate excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92273#M26266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I don't have the permit to change the computer's setting,,,,,,so what I can do only is add an extra row on the top&amp;nbsp; to define the columns' properties? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 20:32:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92273#M26266</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-13T20:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of use libname to associate excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92274#M26267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bt default, Excel scans only the first 8 lines of a table to determine the column properties. So, yes, putting your longest possible string within the first 8 lines will do the trick.&amp;nbsp; - PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 22:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92274#M26267</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-08-13T22:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of use libname to associate excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92275#M26268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try some option similar to proc import ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname x excel 'c:\xx.xls' scantext=yes mixed=yes;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 04:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92275#M26268</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-08-14T04:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem of use libname to associate excel</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92276#M26269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ksharp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried these options before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure this is not a new problem, if you could find an option like that would be fantastic!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 21:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Problem-of-use-libname-to-associate-excel/m-p/92276#M26269</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-14T21:27:34Z</dc:date>
    </item>
  </channel>
</rss>

