<?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: Macro to select multiple files already in a sas library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33121#M6421</link>
    <description>True, but if you are stuck with SAS 9.1 you don't have that nice little feature.</description>
    <pubDate>Fri, 18 Mar 2011 16:55:15 GMT</pubDate>
    <dc:creator>RickM</dc:creator>
    <dc:date>2011-03-18T16:55:15Z</dc:date>
    <item>
      <title>Macro to select multiple files already in a sas library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33118#M6418</link>
      <description>In a sas library named claims I have the following:&lt;BR /&gt;
&lt;BR /&gt;
claims.inv06_2010_1;&lt;BR /&gt;
claims.inv06_2010_2;&lt;BR /&gt;
claims.inv06_2010_3;&lt;BR /&gt;
claims.inv06_2010_4;&lt;BR /&gt;
......and so on up to about 100&lt;BR /&gt;
&lt;BR /&gt;
I would normally have something like&lt;BR /&gt;
data INV;&lt;BR /&gt;
set claims.inv06_2010_1;&lt;BR /&gt;
claims.inv06_2010_2;&lt;BR /&gt;
claims.inv06_2010_3;&lt;BR /&gt;
claims.inv06_2010_4;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to have a macro identify all of those claims.inv06_2010 tables without having to type out all of the tables individually.  I have on average about 100 tables. This example is just for 1 year.</description>
      <pubDate>Fri, 18 Mar 2011 16:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33118#M6418</guid>
      <dc:creator>omega1983</dc:creator>
      <dc:date>2011-03-18T16:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select multiple files already in a sas library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33119#M6419</link>
      <description>Try using the sashelp.vcolumn table and proc sql to select the table names into a macro variable.&lt;BR /&gt;
&lt;BR /&gt;
Good luck!</description>
      <pubDate>Fri, 18 Mar 2011 16:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33119#M6419</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2011-03-18T16:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select multiple files already in a sas library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33120#M6420</link>
      <description>You don't actually need a macro program. As long as the names -start- with the same prefix, you can use the colon in a name list, as shown here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a003040446.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/62955/HTML/default/viewer.htm#a003040446.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
See the section entitled, "Data Set Lists" which has an example of how to use the colon to refer to a data set list.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 18 Mar 2011 16:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33120#M6420</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-03-18T16:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select multiple files already in a sas library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33121#M6421</link>
      <description>True, but if you are stuck with SAS 9.1 you don't have that nice little feature.</description>
      <pubDate>Fri, 18 Mar 2011 16:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33121#M6421</guid>
      <dc:creator>RickM</dc:creator>
      <dc:date>2011-03-18T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select multiple files already in a sas library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33122#M6422</link>
      <description>thanks</description>
      <pubDate>Fri, 18 Mar 2011 17:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33122#M6422</guid>
      <dc:creator>omega1983</dc:creator>
      <dc:date>2011-03-18T17:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to select multiple files already in a sas library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33123#M6423</link>
      <description>thanks</description>
      <pubDate>Fri, 18 Mar 2011 17:48:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-select-multiple-files-already-in-a-sas-library/m-p/33123#M6423</guid>
      <dc:creator>omega1983</dc:creator>
      <dc:date>2011-03-18T17:48:03Z</dc:date>
    </item>
  </channel>
</rss>

