<?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: Excel to Datasets by passing Macros in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Excel-to-Datasets-by-passing-Macros/m-p/29239#M6843</link>
    <description>why use a macro?&lt;BR /&gt;
just use a LIBNAME statement.&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
    <pubDate>Fri, 08 May 2009 11:20:34 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2009-05-08T11:20:34Z</dc:date>
    <item>
      <title>Excel to Datasets by passing Macros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Excel-to-Datasets-by-passing-Macros/m-p/29238#M6842</link>
      <description>In a Excel work book i have 20 sheets of data .Now i want to create 20 datasets from them by passing a macro.</description>
      <pubDate>Fri, 08 May 2009 05:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Excel-to-Datasets-by-passing-Macros/m-p/29238#M6842</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2009-05-08T05:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Datasets by passing Macros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Excel-to-Datasets-by-passing-Macros/m-p/29239#M6843</link>
      <description>why use a macro?&lt;BR /&gt;
just use a LIBNAME statement.&lt;BR /&gt;
&lt;BR /&gt;
PeterC</description>
      <pubDate>Fri, 08 May 2009 11:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Excel-to-Datasets-by-passing-Macros/m-p/29239#M6843</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-05-08T11:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Excel to Datasets by passing Macros</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Excel-to-Datasets-by-passing-Macros/m-p/29240#M6844</link>
      <description>Yeah thats what i would suggest.&lt;BR /&gt;
&lt;BR /&gt;
libname  test 'c:\excel_file.xls';&lt;BR /&gt;
&lt;BR /&gt;
what you need to remember is when you are using the sheets in datasteps.&lt;BR /&gt;
&lt;BR /&gt;
For Example&lt;BR /&gt;
&lt;BR /&gt;
data New_dataset;&lt;BR /&gt;
set test."Sheet1$"n;        &lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
/*You need to have the sheet1 enclosed within brackets*/                                 &lt;BR /&gt;
/*there is also a need to include the $ and the n for the */&lt;BR /&gt;
/*data step to work correctly                                       */</description>
      <pubDate>Fri, 08 May 2009 11:45:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Excel-to-Datasets-by-passing-Macros/m-p/29240#M6844</guid>
      <dc:creator>Doyleuk</dc:creator>
      <dc:date>2009-05-08T11:45:35Z</dc:date>
    </item>
  </channel>
</rss>

