<?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: Reference folder in a libname in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reference-folder-in-a-libname/m-p/843234#M333382</link>
    <description>&lt;P&gt;Note: BDAT files should not be part of a "libname" they are the data sets.&lt;/P&gt;
&lt;P&gt;A libname statement to reference multiple folders needs to list them. One way is below. Note the ( ) around the list.&lt;/P&gt;
&lt;PRE&gt;libname x ("/_U/N/RC/Proj/SAS/data1" "/_U/N/RC/Proj/SAS/data2"
           "/_U/N/RC/Proj/SAS/data3" "/_U/N/RC/Proj/SAS/data4" 
          ); &lt;/PRE&gt;
&lt;P&gt;another would be assign a different libname to each folder and then create composite library. Assuming you created libraries named Lib1 through lib4 , one for each folder. Then the library All would include all of them.&lt;/P&gt;
&lt;PRE&gt;libname all (lib1 lib2 lib3 lib4);&lt;/PRE&gt;
&lt;P&gt;Caution: duplicate data set names in multiple folders will be difficult to work with.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 20:31:30 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2022-11-08T20:31:30Z</dc:date>
    <item>
      <title>Reference folder in a libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reference-folder-in-a-libname/m-p/843227#M333379</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a folder with two levels. The first level has 20 second level folders. I have sasfiles in each of the second level and will like to create a single libname for them. How do I do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;First level folder :&amp;nbsp;/_U/N/RC/Proj/SAS&lt;/P&gt;&lt;P&gt;Second level folder :&amp;nbsp;/_U/N/RC/Proj/SAS/data1/a.sas7bdat&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/_U/N/RC/Proj/SAS/data2/b.sas7bdat&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/_U/N/RC/Proj/SAS/data3/c.sas7bdat&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/_U/N/RC/Proj/SAS/data4/d.sas7bdat&lt;/P&gt;&lt;P&gt;When I write a libname to reference all the second level files using the&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname x "/_U/N/RC/Proj/SAS"; run;&lt;/P&gt;&lt;P&gt;its not working and I do not want to go through the pain of writing 20 libnames and putting all the libref in&amp;nbsp; another single libname or is that what I have to do?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 19:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reference-folder-in-a-libname/m-p/843227#M333379</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2022-11-08T19:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reference folder in a libname</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reference-folder-in-a-libname/m-p/843234#M333382</link>
      <description>&lt;P&gt;Note: BDAT files should not be part of a "libname" they are the data sets.&lt;/P&gt;
&lt;P&gt;A libname statement to reference multiple folders needs to list them. One way is below. Note the ( ) around the list.&lt;/P&gt;
&lt;PRE&gt;libname x ("/_U/N/RC/Proj/SAS/data1" "/_U/N/RC/Proj/SAS/data2"
           "/_U/N/RC/Proj/SAS/data3" "/_U/N/RC/Proj/SAS/data4" 
          ); &lt;/PRE&gt;
&lt;P&gt;another would be assign a different libname to each folder and then create composite library. Assuming you created libraries named Lib1 through lib4 , one for each folder. Then the library All would include all of them.&lt;/P&gt;
&lt;PRE&gt;libname all (lib1 lib2 lib3 lib4);&lt;/PRE&gt;
&lt;P&gt;Caution: duplicate data set names in multiple folders will be difficult to work with.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 20:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reference-folder-in-a-libname/m-p/843234#M333382</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-11-08T20:31:30Z</dc:date>
    </item>
  </channel>
</rss>

