<?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....multiple sheets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385844#M92343</link>
    <description>&lt;P&gt;how to import multiple sheets from a single excel workbook without using macro or proc sql.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Aug 2017 14:43:43 GMT</pubDate>
    <dc:creator>asuman</dc:creator>
    <dc:date>2017-08-05T14:43:43Z</dc:date>
    <item>
      <title>PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385844#M92343</link>
      <description>&lt;P&gt;how to import multiple sheets from a single excel workbook without using macro or proc sql.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 14:43:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385844#M92343</guid>
      <dc:creator>asuman</dc:creator>
      <dc:date>2017-08-05T14:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385855#M92347</link>
      <description>Not sure if its possible without the use of macros , as the multiple sheets are to be converted to each separate dataset. It would be interesting to know if there is way to achieve it.</description>
      <pubDate>Sat, 05 Aug 2017 16:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385855#M92347</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-08-05T16:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385863#M92353</link>
      <description>&lt;P&gt;Without macros? Simple. Write code to import each sheet, one-by-one.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 18:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385863#M92353</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-08-05T18:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385864#M92354</link>
      <description>&lt;P&gt;If you have SAS/Access to PC files you can try LIBNAME EXCEL Engine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your trying to append all the data in different sheets you assign the excel file as a library and read the individual sheets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: If you see the datasets in the Excel library with "$" trailing then the dataset has to be referenced as FILE.'sheet1$'n&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Libname file EXCEL "&amp;lt;FilePath&amp;gt;";&lt;/P&gt;&lt;P&gt;PROC SQL ;&lt;BR /&gt;select COMPRESS(cat(libname,".","'",memname,"'","n"))&lt;BR /&gt;into :ranges separated by ' '&lt;BR /&gt;from dictionary.members&lt;BR /&gt;where libname = 'FILE'&lt;BR /&gt;;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;%PUT &amp;amp;ranges;&lt;/P&gt;&lt;P&gt;DATA test;&lt;BR /&gt;set &amp;amp;ranges;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;LIBNAME File clear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Suryakiran&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 18:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385864#M92354</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2017-08-05T18:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385873#M92357</link>
      <description>&lt;P&gt;Well, &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/83078"&gt;@SuryaKiran&lt;/a&gt;, that's brilliant, I like it ... but the original request was very stubborn and clear ... no macros, no PROC SQL (and sounds very much like a homework assignment)&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 20:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385873#M92357</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-08-05T20:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385877#M92359</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;The SAS/ACCESS Interface to PC Files engine that you use may depend on your version of SAS and the type of Excel file that you&amp;nbsp;need to import.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Here is sample code to import an XLSX file using SAS 9.4 M4:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xl xlsx 'C:\temp\MyFile.xlsx' access=read;

options validvarname=any validmemname=extend;

proc datasets nolist;
  copy in=xl out=work;
run; quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 23:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-IMPORT-multiple-sheets/m-p/385877#M92359</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2017-08-05T23:12:35Z</dc:date>
    </item>
  </channel>
</rss>

