<?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 Libname and specific range in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270357#M53704</link>
    <description>&lt;P&gt;Thanks for the suggestion - within this - can I predefine columns as character and numeric? Can this be done if the columns are blank?&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2016 14:39:05 GMT</pubDate>
    <dc:creator>Doug____</dc:creator>
    <dc:date>2016-05-13T14:39:05Z</dc:date>
    <item>
      <title>Excel Libname and specific range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270347#M53697</link>
      <description>&lt;P&gt;Can SAS import a specific range of cells from a workbook using the libname syntax? If so can it be done with non-standard tab names that contain punctuation, etc.?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 14:11:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270347#M53697</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2016-05-13T14:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Libname and specific range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270350#M53699</link>
      <description>&lt;P&gt;Yes, with the Excel engine, the syntax is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname xl Excel "c:\yourdir\yourFile.xlsx" access=readonly header=no;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;set xl.'Sheet1$A1:Z50'n;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 14:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270350#M53699</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-13T14:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Libname and specific range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270357#M53704</link>
      <description>&lt;P&gt;Thanks for the suggestion - within this - can I predefine columns as character and numeric? Can this be done if the columns are blank?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 14:39:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270357#M53704</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2016-05-13T14:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Libname and specific range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270389#M53716</link>
      <description>&lt;P&gt;With the Excel engine, no (things might be different with the new xlsx engine, which I haven't tested.) The type of data columns is based on a scan to the first few lines of data. Assigning a format, even to empty cells, is often enough to get the correct column type.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 15:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270389#M53716</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-13T15:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Libname and specific range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270495#M53755</link>
      <description>&lt;PRE&gt;
Yes. you can.


libname x excel 'c:\temp\temp.xls' ;
data want;
 set x.'Sheet1$'n(dbsastype=(g='char(10)' x='numeric'));
run;

&lt;/PRE&gt;</description>
      <pubDate>Sat, 14 May 2016 08:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/270495#M53755</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-14T08:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Libname and specific range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/272576#M54245</link>
      <description>&lt;P&gt;Another related question,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have imported xls workbooks (the same one) a number of times sucessfully&amp;nbsp;and now I am getting the following message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: File _IMEX_.'a$a27:r3000'n.DATA does not exist.&lt;/P&gt;&lt;P&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not happen all the time but sometimes. Any thoughts as to the cause? Network communication issues, perhaps?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 22:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/272576#M54245</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2016-05-23T22:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Libname and specific range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/272587#M54250</link>
      <description>&lt;P&gt;How did you import Excel file ? &amp;nbsp;PROC IMPORT or LIBNAME ?&lt;/P&gt;
&lt;P&gt;What is your code ?&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 00:50:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/272587#M54250</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-24T00:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Libname and specific range</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/274766#M54880</link>
      <description>&lt;P&gt;I am currently using a PROC IMPORT step wtih SAS options to indicate which columns are numeric.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 18:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excel-Libname-and-specific-range/m-p/274766#M54880</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2016-06-02T18:39:51Z</dc:date>
    </item>
  </channel>
</rss>

