<?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: List all dataset names in a library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290330#M60056</link>
    <description>&lt;P&gt;Usually the notation suggestion is LIBNAME._all_&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your code should look like the following, assuming your libname is correct. Note that proc datasets requires a QUIT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib '/folders/myfolders/sasdata/sasdata';

PROC DATASETS;
CONTENTS DATA= mylib._all_;
RUN;QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Aug 2016 21:21:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-08-08T21:21:44Z</dc:date>
    <item>
      <title>List all dataset names in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290318#M60054</link>
      <description>&lt;P&gt;Good Day! I am using using SAS Essentials, by Elliot and Woodward, to get my feet wet with SAS. The following code displays a list of the data after importing the file somedata (in the directory it is somedata.sas7bdat):&lt;/P&gt;&lt;P&gt;*******************************************************&lt;BR /&gt;* From SAS ESSENTIALS, Jossey Bass/Wiley&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; *&lt;BR /&gt;* (C) 2010 Elliott, Alan C. and Woodward, Wayne A.&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;*******************************************************;&lt;BR /&gt;PROC DATASETS;&lt;BR /&gt;CONTENTS DATA= "/folders/myfolders/sasdata/somedata";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the authors say to display information about all data sets in the&amp;nbsp; sasdata library I should&lt;/P&gt;&lt;P&gt;CONTENTS DATA= "/folders/myfolders/sasdata/somedata._ALL_";but I do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC DATASETS;&lt;BR /&gt;CONTENTS DATA= "/folders/myfolders/sasdata/sasdata._ALL_";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log is:&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;55&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;56 *******************************************************&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;57 * From SAS ESSENTIALS, Jossey Bass/Wiley *&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;58 * (C) 2010 Elliott, Alan C. and Woodward, Wayne A. *&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;59 *******************************************************;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;60 PROC DATASETS;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;61 CONTENTS DATA= "/folders/myfolders/sasdata/sasdata._ALL_";&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Extension for physical file name "/folders/myfolders/sasdata/sasdata._ALL_" does not correspond to a valid member type.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Enter RUN; to continue or QUIT; to end the procedure.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;62 RUN;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Statements not processed because of errors noted above.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;Any suggestions?&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp; Most appreciative&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;PS I am using SAS University ed on Windows 7 VM Virtual Box Manager&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290318#M60054</guid>
      <dc:creator>jmarroyo</dc:creator>
      <dc:date>2016-08-08T20:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: List all dataset names in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290328#M60055</link>
      <description>&lt;P&gt;The book lists notations like in your code, including the portion in blue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PROC DATASETS;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CONTENTS DATA= &lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;"/folders/myfolders/sasdata/somedata"&lt;/FONT&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 21:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290328#M60055</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-08T21:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: List all dataset names in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290330#M60056</link>
      <description>&lt;P&gt;Usually the notation suggestion is LIBNAME._all_&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your code should look like the following, assuming your libname is correct. Note that proc datasets requires a QUIT.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib '/folders/myfolders/sasdata/sasdata';

PROC DATASETS;
CONTENTS DATA= mylib._all_;
RUN;QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Aug 2016 21:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290330#M60056</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-08T21:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: List all dataset names in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290336#M60062</link>
      <description>&lt;P&gt;No Sir. I had to modify the original file location because I am using the University Edition, and as you are well aware, I have to put all my files (and subdirectories, ie. sasdata) where they are to be accesible to Virtual box. the original code was:&lt;/P&gt;&lt;P&gt;DATAFILE= C:\SASDATA\SOMEDATA;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this answers your question and most appreciative for any assistance&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 21:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290336#M60062</guid>
      <dc:creator>jmarroyo</dc:creator>
      <dc:date>2016-08-08T21:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: List all dataset names in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290337#M60063</link>
      <description>&lt;P&gt;Not a Sir.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 21:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290337#M60063</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-08T21:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: List all dataset names in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290338#M60064</link>
      <description>&lt;P&gt;They appear to be using a non-standard convention. I would recommend a different book to learn from.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Little SAS Book for SAS University Edition is probably a better starting point.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 21:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290338#M60064</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-08T21:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: List all dataset names in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290340#M60066</link>
      <description>&lt;P&gt;Your name is the same as a good friend. My deepest and most sincere apologies!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 21:37:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290340#M60066</guid>
      <dc:creator>jmarroyo</dc:creator>
      <dc:date>2016-08-08T21:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: List all dataset names in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290342#M60068</link>
      <description>&lt;P&gt;This works. Most appreciative!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 21:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/List-all-dataset-names-in-a-library/m-p/290342#M60068</guid>
      <dc:creator>jmarroyo</dc:creator>
      <dc:date>2016-08-08T21:56:01Z</dc:date>
    </item>
  </channel>
</rss>

