<?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: PROC IMPORT....multiple sheets in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/366915#M64886</link>
    <description>&lt;P&gt;/* Macro for importing data in SAS which is available in multiple sheets of a single excel file */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro dataload(sheet);&lt;/P&gt;
&lt;P&gt;proc import out= &amp;amp;sheet&lt;BR /&gt; datafile = 'location of excel file\filename.xlsx'&lt;BR /&gt; dbms = XLSX replace;&lt;BR /&gt; sheet = "&amp;amp;sheet";&lt;BR /&gt; getnames = yes;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%mend dataload;&lt;BR /&gt;%dataload(Contract);&lt;BR /&gt;%dataload(Instrument);&lt;BR /&gt;%dataload(Protection);&lt;BR /&gt;%dataload(Counterparty);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2017 11:47:00 GMT</pubDate>
    <dc:creator>RoshanJha</dc:creator>
    <dc:date>2017-06-14T11:47:00Z</dc:date>
    <item>
      <title>PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149597#M39467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to understand, how to import multiple sheets using Proc Import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand Sahu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 05:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149597#M39467</guid>
      <dc:creator>AnandSahu</dc:creator>
      <dc:date>2013-11-20T05:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149598#M39468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably need more information than what was posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general you would have a separate proc import step for each sheet that you want to import.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 13:51:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149598#M39468</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2013-11-20T13:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149599#M39469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are many papers published on this topic.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.google.com/search?q=%40sas.com+proc+import+multiple+sheets&amp;amp;oq=%40sas.com+proc+import+multiple+sheets"&gt;Google Search @sas.com proc import multiple sheets&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 14:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149599#M39469</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-20T14:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149600#M39470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using the following codes to import three sheets from a single workbook so can i get a program that allow me to get the same result with a single code.&lt;/P&gt;&lt;P&gt;The Excel file is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import out= Customer_details&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datafile = 'E:\SAS DOC\project\Credit Banking.xls'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms = Excel;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet = 'Customer Acqusition';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; getnames = yes;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;proc import out= Expanse&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datafile = 'E:\SAS DOC\project\Credit Banking.xls'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms = Excel;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet = 'Spend';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; getnames = yes;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;proc import out= payment&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datafile = 'E:\SAS DOC\project\Credit Banking.xls'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms = Excel;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet = 'Repayment';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; getnames = yes;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 18:03:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149600#M39470</guid>
      <dc:creator>AnandSahu</dc:creator>
      <dc:date>2013-11-20T18:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149601#M39471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched everywhere but couldn't get anywhere that's why seeking help from here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 18:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149601#M39471</guid>
      <dc:creator>AnandSahu</dc:creator>
      <dc:date>2013-11-20T18:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149602#M39472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you read any of the articles that the link I posted found by searching using Google?&lt;/P&gt;&lt;P&gt;How about this one from 2011?&amp;nbsp; &lt;A href="http://www.nesug.org/Proceedings/nesug11/cc/cc17.pdf" title="http://www.nesug.org/Proceedings/nesug11/cc/cc17.pdf"&gt;http://www.nesug.org/Proceedings/nesug11/cc/cc17.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 18:30:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149602#M39472</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-20T18:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149603#M39473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There isnt code to read in multiple sheets from one proc import statement that I know about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The best you could do would be to macrotize the invocation of the proc step... something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro pim(sheet);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc import out= payment&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; datafile = 'E:\SAS DOC\project\Credit Banking.xls'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms = Excel;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet = "&amp;amp;sheet";&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; getnames = yes;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P&gt;%mend piim;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%pim(Customer Acqusition);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%pim(Spend);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%pim(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Repayment&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 20:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/149603#M39473</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2013-11-20T20:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/272375#M58355</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm searching for the same answer and tried this solution (which seems to work for many others)&lt;/P&gt;
&lt;P&gt;but it doesn't work on my system and I wonder why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I get&amp;nbsp;this error&amp;nbsp;for which I can't find any solution on other forums.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: DBMS type EXCEL not valid for import.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm working with SAS 9.3 in SAS EG 5.1&amp;nbsp;(5.100.0.12019) (64-bit) on Windows7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: I found out I don't have&amp;nbsp;&lt;SPAN&gt;SAS/ACCESS&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 13:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/272375#M58355</guid>
      <dc:creator>mathias</dc:creator>
      <dc:date>2016-05-23T13:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/366915#M64886</link>
      <description>&lt;P&gt;/* Macro for importing data in SAS which is available in multiple sheets of a single excel file */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro dataload(sheet);&lt;/P&gt;
&lt;P&gt;proc import out= &amp;amp;sheet&lt;BR /&gt; datafile = 'location of excel file\filename.xlsx'&lt;BR /&gt; dbms = XLSX replace;&lt;BR /&gt; sheet = "&amp;amp;sheet";&lt;BR /&gt; getnames = yes;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%mend dataload;&lt;BR /&gt;%dataload(Contract);&lt;BR /&gt;%dataload(Instrument);&lt;BR /&gt;%dataload(Protection);&lt;BR /&gt;%dataload(Counterparty);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 11:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/366915#M64886</guid>
      <dc:creator>RoshanJha</dc:creator>
      <dc:date>2017-06-14T11:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT....multiple sheets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/391132#M66212</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have the Tab names as 75511,75522,75533 and 75544. These are numeric.&lt;BR /&gt;&lt;BR /&gt;How can mention those.</description>
      <pubDate>Sun, 27 Aug 2017 17:12:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-multiple-sheets/m-p/391132#M66212</guid>
      <dc:creator>PONNAGANTI</dc:creator>
      <dc:date>2017-08-27T17:12:47Z</dc:date>
    </item>
  </channel>
</rss>

