<?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 PROC IMPORT - Excel multiple ranges? in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/PROC-IMPORT-Excel-multiple-ranges/m-p/62661#M860</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to input multiple ranges when using PROC IMPORT on an Excel file?&lt;BR /&gt;
&lt;BR /&gt;
PROC IMPORT DATAFILE = "C:\abcSept08.xls"&lt;BR /&gt;
	OUT = abc_Sep08&lt;BR /&gt;
	DBMS = EXCEL2000 REPLACE;&lt;BR /&gt;
	RANGE = "XYZ$B48:Q51";	&lt;BR /&gt;
	GETNAMES = NO;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Above is my current code.  If I also want to bring in cells B121:Q140 and B210:Q234, is it possible to do it all in one step?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.</description>
    <pubDate>Fri, 21 Nov 2008 21:03:39 GMT</pubDate>
    <dc:creator>stat11</dc:creator>
    <dc:date>2008-11-21T21:03:39Z</dc:date>
    <item>
      <title>PROC IMPORT - Excel multiple ranges?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/PROC-IMPORT-Excel-multiple-ranges/m-p/62661#M860</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
Is it possible to input multiple ranges when using PROC IMPORT on an Excel file?&lt;BR /&gt;
&lt;BR /&gt;
PROC IMPORT DATAFILE = "C:\abcSept08.xls"&lt;BR /&gt;
	OUT = abc_Sep08&lt;BR /&gt;
	DBMS = EXCEL2000 REPLACE;&lt;BR /&gt;
	RANGE = "XYZ$B48:Q51";	&lt;BR /&gt;
	GETNAMES = NO;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Above is my current code.  If I also want to bring in cells B121:Q140 and B210:Q234, is it possible to do it all in one step?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.</description>
      <pubDate>Fri, 21 Nov 2008 21:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/PROC-IMPORT-Excel-multiple-ranges/m-p/62661#M860</guid>
      <dc:creator>stat11</dc:creator>
      <dc:date>2008-11-21T21:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT - Excel multiple ranges?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/PROC-IMPORT-Excel-multiple-ranges/m-p/62662#M861</link>
      <description>It seems that you cannot do that.&lt;BR /&gt;
So your choices are:&lt;BR /&gt;
- run multiple imports, and then append the different result sets&lt;BR /&gt;
- read the whole Excel-sheet and post process it&lt;BR /&gt;
- use the LIBNAME excel engine together with named ranges, each named range will appear as separate SAS tables, which you could read in one operation (data-set a  b c...;).&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Mon, 24 Nov 2008 16:18:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/PROC-IMPORT-Excel-multiple-ranges/m-p/62662#M861</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-11-24T16:18:47Z</dc:date>
    </item>
  </channel>
</rss>

