<?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: re: List datasets in library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/re-List-datasets-in-library/m-p/400995#M97228</link>
    <description>&lt;P&gt;You can use sashelp.vcolumns and vtable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table WANT as
  select * 
  from   SASHELP.VCOLUMNS
  where  LIBNAME="SQLDB"
     and MEMNAME in (select distinct MEMNAME from SASHELP.VTABLE where LIBNAME="SQLDB" and NOBS &amp;gt; 0);
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then print want.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Oct 2017 14:33:17 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-10-04T14:33:17Z</dc:date>
    <item>
      <title>re: List datasets in library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-List-datasets-in-library/m-p/400985#M97224</link>
      <description>&lt;P&gt;Hi....I am trying to list the names of the data sets in the library "sqldb" and the variable names in each data set. I want to exclude those data sets that have no records and are empty. Is there a feature that I can add to the proc contents statement that would exclude data sets that are empty? Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname sqldb odbc DSN=darwin;
run;
proc contents data=sqldb._ALL_ varnum ;
run;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-List-datasets-in-library/m-p/400985#M97224</guid>
      <dc:creator>twildone</dc:creator>
      <dc:date>2017-10-04T14:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: re: List datasets in library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/re-List-datasets-in-library/m-p/400995#M97228</link>
      <description>&lt;P&gt;You can use sashelp.vcolumns and vtable:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table WANT as
  select * 
  from   SASHELP.VCOLUMNS
  where  LIBNAME="SQLDB"
     and MEMNAME in (select distinct MEMNAME from SASHELP.VTABLE where LIBNAME="SQLDB" and NOBS &amp;gt; 0);
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then print want.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/re-List-datasets-in-library/m-p/400995#M97228</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-04T14:33:17Z</dc:date>
    </item>
  </channel>
</rss>

