<?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: identify empty datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/identify-empty-datasets/m-p/610862#M177976</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select memname
from dictionary.tables
where libname = 'WORK' and memname like 'CHECK_%' and nobs = 0;
quit; &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 10 Dec 2019 22:27:28 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-12-10T22:27:28Z</dc:date>
    <item>
      <title>identify empty datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/identify-empty-datasets/m-p/610861#M177975</link>
      <description>&lt;P&gt;hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created a number of datasets named with prefix Check_, is there any easy way to quickly identify which one is an empty dataset?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally, it would be great if all datasets starting with "Check_" can be listed with total obs info.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;currently I am using below code to delete unwanted datasets, the result window does not provide info that can identify an empty datasets:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;datasets&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;library&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=work &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;memtype&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=data; &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;delete&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Prefix_:; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;Run&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;quit&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 22:22:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/identify-empty-datasets/m-p/610861#M177975</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2019-12-10T22:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: identify empty datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/identify-empty-datasets/m-p/610862#M177976</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select memname
from dictionary.tables
where libname = 'WORK' and memname like 'CHECK_%' and nobs = 0;
quit; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Dec 2019 22:27:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/identify-empty-datasets/m-p/610862#M177976</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-10T22:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: identify empty datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/identify-empty-datasets/m-p/610863#M177977</link>
      <description>&lt;P&gt;Super! Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 22:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/identify-empty-datasets/m-p/610863#M177977</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2019-12-10T22:31:50Z</dc:date>
    </item>
  </channel>
</rss>

