<?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: Reading Multiple .sas7bdat files in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561314#M157117</link>
    <description>&lt;P&gt;By 'read' i mean i want to view the files. Because these are the files that i got from a source and i dont know what type of data it consists. so i was looking for something that helps me in viewing the data set this folder holds. and since the folder contains multiple file, i was looking for something like macro. But since i dont have command over macro programming so i am seeking your help.If there is anyother way please suggest me.&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2019 04:42:46 GMT</pubDate>
    <dc:creator>Appy18</dc:creator>
    <dc:date>2019-05-24T04:42:46Z</dc:date>
    <item>
      <title>Reading Multiple .sas7bdat files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/560793#M156899</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I had a query.Folder all_data contains multiple .sas7bdat files. I need to read it . I know how to read sinlge file but cant figure out anything regardig this.&lt;/P&gt;&lt;P&gt;I am new to sas, plz guide me a little.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample data_&lt;/P&gt;&lt;P&gt;all_data&lt;/P&gt;&lt;P&gt;abc.sas7bdat&lt;/P&gt;&lt;P&gt;xzy.sas7bdat&lt;/P&gt;&lt;P&gt;pqr.sas7bdat&lt;/P&gt;&lt;P&gt;stv.sas7bdat&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 12:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/560793#M156899</guid>
      <dc:creator>Appy18</dc:creator>
      <dc:date>2019-05-22T12:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Multiple .sas7bdat files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/560799#M156900</link>
      <description>&lt;P&gt;You can assign a library with the location where the datasets are located and then use a data step to read the datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname source '~path of folder with datasets';

data want;
set source.x1 ;
run;

data want2;
set source.x2;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2019 12:25:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/560799#M156900</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2019-05-22T12:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Multiple .sas7bdat files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/560824#M156908</link>
      <description>&lt;P&gt;"Read" is quite vague.&lt;/P&gt;
&lt;P&gt;Explain how you need to process these tables and then we can guide you.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 13:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/560824#M156908</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2019-05-22T13:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Multiple .sas7bdat files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561313#M157116</link>
      <description>&lt;P&gt;thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12151"&gt;@Jagadishkatam&lt;/a&gt;, but i think this way i have to define all the files in my folder .(correct me if i am wrong). I&amp;nbsp; don't want to do that.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 04:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561313#M157116</guid>
      <dc:creator>Appy18</dc:creator>
      <dc:date>2019-05-24T04:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Multiple .sas7bdat files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561314#M157117</link>
      <description>&lt;P&gt;By 'read' i mean i want to view the files. Because these are the files that i got from a source and i dont know what type of data it consists. so i was looking for something that helps me in viewing the data set this folder holds. and since the folder contains multiple file, i was looking for something like macro. But since i dont have command over macro programming so i am seeking your help.If there is anyother way please suggest me.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 04:42:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561314#M157117</guid>
      <dc:creator>Appy18</dc:creator>
      <dc:date>2019-05-24T04:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Multiple .sas7bdat files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561319#M157118</link>
      <description>A report would be a good start.  Assuming you know where the data sets are stored:&lt;BR /&gt;&lt;BR /&gt;libname perm 'path to folder holding data';&lt;BR /&gt;&lt;BR /&gt;proc contents data=perm._all_;&lt;BR /&gt;run;</description>
      <pubDate>Fri, 24 May 2019 05:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561319#M157118</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-05-24T05:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Multiple .sas7bdat files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561330#M157123</link>
      <description>I dont think I understand what is your question .Is there 1)a folder with many datasets which you want to read into sas,2)or many folds that each one with many datasets?&lt;BR /&gt;if you are in case 1),I think you can use" libname source '~path of folder with datasets;"&lt;BR /&gt;if not,my suggestion is that organizing all folders into one folder，then you can use “libname”&lt;BR /&gt;</description>
      <pubDate>Fri, 24 May 2019 07:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561330#M157123</guid>
      <dc:creator>HannaZhang</dc:creator>
      <dc:date>2019-05-24T07:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Multiple .sas7bdat files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561409#M157157</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/275211"&gt;@HannaZhang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you just need a single libref which includes SAS tables from multiple folders then there is no need to physically copy these tables into a single folder. Instead define a libname which includes multiple paths.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can look-up how that's done by searching using a terms like "SAS Library Concatenation"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;N.B: If using a concatenated library then SAS traverses the paths in the order in which they are listed in the library definition.&lt;/P&gt;
&lt;P&gt;-&amp;nbsp; in case of the same table name (file name) existing in multiple folders SAS will return the first table found&lt;/P&gt;
&lt;P&gt;-&amp;nbsp; if creating (writing) a new table (or replacing an existing table) then SAS will create this table in the first folder in the concatenated path&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 14:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561409#M157157</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-05-24T14:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Multiple .sas7bdat files</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561674#M157282</link>
      <description>&lt;P&gt;Thanks, i am going to try it.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2019 05:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Multiple-sas7bdat-files/m-p/561674#M157282</guid>
      <dc:creator>Appy18</dc:creator>
      <dc:date>2019-05-27T05:37:22Z</dc:date>
    </item>
  </channel>
</rss>

