<?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: How to create a macro to import multiples workbooks with different name into SAS PC? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184749#M265512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%macro import_xls(input, output);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile="&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;H:\user\document\sas&lt;/STRONG&gt;\&amp;amp;input..xls" out=mywork.&amp;amp;output DBMS=xls; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%import_xls(soccer, soccer);&lt;/P&gt;&lt;P&gt;%import_xls(golf, golf);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2015 17:59:11 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-01-16T17:59:11Z</dc:date>
    <item>
      <title>How to create a macro to import multiples workbooks with different name into SAS PC?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184744#M265507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have multiple workbooks (xls) with different name i am trying to import into SAS PC. i am using proc import multiple time to do the job.&lt;/P&gt;&lt;P&gt;Workbooks name are : &lt;STRONG&gt;Soccer, Tennis and Golf&lt;/STRONG&gt; saved in: &lt;STRONG&gt;H:\user\document\sas &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I created a library name &lt;STRONG&gt;Mywork&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Help to use a macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184744#M265507</guid>
      <dc:creator>Armand</dc:creator>
      <dc:date>2015-01-15T16:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a macro to import multiples workbooks with different name into SAS PC?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184745#M265508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, probably the quickest way is to do a libname to the Excel file.&amp;nbsp; You can then access the various sheets as datasets.&amp;nbsp; Here is some guidance: &lt;A href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" title="http://www2.sas.com/proceedings/sugi31/024-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/024-31.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2015 16:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184745#M265508</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-01-15T16:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a macro to import multiples workbooks with different name into SAS PC?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184746#M265509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the pdf suggested has good stuff but that s how i did. I thought there is macro way to do that when you have multiple excel files to import from external.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 16:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184746#M265509</guid>
      <dc:creator>Armand</dc:creator>
      <dc:date>2015-01-16T16:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a macro to import multiples workbooks with different name into SAS PC?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184747#M265510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help if you showed the proc import code you used to successfully import the three workbooks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 16:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184747#M265510</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-01-16T16:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a macro to import multiples workbooks with different name into SAS PC?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184748#M265511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, post your code.&amp;nbsp; What do you mean by "thought there was a macro way to do it"?&amp;nbsp; You can put most code you like in a macro, but there is nothing special about macros, to all intents and purposes it is just a find and replace system to save you typing the same code over and over.&amp;nbsp; If you know the sheetnames, then you could put your import into a macro with sheetname="&amp;amp;macro variable." and call it once per sheet.&amp;nbsp; Is there much value though?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 17:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184748#M265511</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-01-16T17:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a macro to import multiples workbooks with different name into SAS PC?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184749#M265512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%macro import_xls(input, output);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile="&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;H:\user\document\sas&lt;/STRONG&gt;\&amp;amp;input..xls" out=mywork.&amp;amp;output DBMS=xls; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%import_xls(soccer, soccer);&lt;/P&gt;&lt;P&gt;%import_xls(golf, golf);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 17:59:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184749#M265512</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-01-16T17:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a macro to import multiples workbooks with different name into SAS PC?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184750#M265513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Reeza it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 18:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-macro-to-import-multiples-workbooks-with/m-p/184750#M265513</guid>
      <dc:creator>Armand</dc:creator>
      <dc:date>2015-01-19T18:44:25Z</dc:date>
    </item>
  </channel>
</rss>

