<?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: Importing Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel/m-p/706174#M216715</link>
    <description>&lt;P&gt;LIBNAME + PROC COPY to read everything in quickly and at once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I only use RANGE when I need to extract data that's in a weird format. This will copy all files from the Excel file to your work library in one shot. You can select specific sheets if you'd like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myXL xlsx '/folders/myfolders/demo.xlsx';

proc copy in=myXL out=work;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/350130"&gt;@Rohan_Garg4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What is the best way to import a .xls file with multiple sheets that you are interested in importing? Do you individually import each sheet or do a RANGE function?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Dec 2020 00:35:58 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-12-16T00:35:58Z</dc:date>
    <item>
      <title>Importing Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel/m-p/706157#M216710</link>
      <description>&lt;P&gt;What is the best way to import a .xls file with multiple sheets that you are interested in importing? Do you individually import each sheet or do a RANGE function?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2020 23:01:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel/m-p/706157#M216710</guid>
      <dc:creator>Rohan_Garg4</dc:creator>
      <dc:date>2020-12-15T23:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel/m-p/706168#M216713</link>
      <description>&lt;P&gt;Hi - I am a fairly new SAS user myself, but it is my understanding that you would import each sheet and the RANGE function is utilized for subsetting data within a sheet. Maybe to avoid writing so much code, you could employ a macro to change the sheet names as many times as you desire.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 00:12:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel/m-p/706168#M216713</guid>
      <dc:creator>kirstinpruitt</dc:creator>
      <dc:date>2020-12-16T00:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel/m-p/706174#M216715</link>
      <description>&lt;P&gt;LIBNAME + PROC COPY to read everything in quickly and at once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I only use RANGE when I need to extract data that's in a weird format. This will copy all files from the Excel file to your work library in one shot. You can select specific sheets if you'd like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myXL xlsx '/folders/myfolders/demo.xlsx';

proc copy in=myXL out=work;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/350130"&gt;@Rohan_Garg4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What is the best way to import a .xls file with multiple sheets that you are interested in importing? Do you individually import each sheet or do a RANGE function?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 00:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel/m-p/706174#M216715</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-12-16T00:35:58Z</dc:date>
    </item>
  </channel>
</rss>

