<?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 Get list of data sets exists in permanent library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-list-of-data-sets-exists-in-permanent-library/m-p/746066#M233997</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;In a permanent library called labqret there are multiple data sets.&lt;/P&gt;
&lt;P&gt;Some of the data sets&amp;nbsp; there have the name labqret.ABC_TS_YYMMB&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;labqret.ABC_TS_2106B&amp;nbsp; &amp;nbsp;(It means June 2021)&lt;/P&gt;
&lt;P&gt;labqret.ABC_TS_2105B&amp;nbsp;&amp;nbsp;(It means MAY 2021)&lt;/P&gt;
&lt;P&gt;labqret.ABC_TS_2104B&amp;nbsp;&amp;nbsp;(It means April 2021)&lt;/P&gt;
&lt;P&gt;and so on&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to write a program that create a macro variable called&amp;nbsp;memlist with names of data sets that exists in library&amp;nbsp;labqret only with names&amp;nbsp;labqret.ABC_TS_YYMMB.&lt;/P&gt;
&lt;P&gt;The problem is that I get null result&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint ;
%let memlist=_null_;
  select catx('.',libname,memname)
    into :memlist separated by ' '
    from dictionary.members 
    where libname='labqret'
      and ((memname like 'ABC_TS_%'))
  ;
quit;
%put &amp;amp;memlist;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 06 Jun 2021 05:50:57 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2021-06-06T05:50:57Z</dc:date>
    <item>
      <title>Get list of data sets exists in permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-list-of-data-sets-exists-in-permanent-library/m-p/746066#M233997</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;In a permanent library called labqret there are multiple data sets.&lt;/P&gt;
&lt;P&gt;Some of the data sets&amp;nbsp; there have the name labqret.ABC_TS_YYMMB&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;labqret.ABC_TS_2106B&amp;nbsp; &amp;nbsp;(It means June 2021)&lt;/P&gt;
&lt;P&gt;labqret.ABC_TS_2105B&amp;nbsp;&amp;nbsp;(It means MAY 2021)&lt;/P&gt;
&lt;P&gt;labqret.ABC_TS_2104B&amp;nbsp;&amp;nbsp;(It means April 2021)&lt;/P&gt;
&lt;P&gt;and so on&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to write a program that create a macro variable called&amp;nbsp;memlist with names of data sets that exists in library&amp;nbsp;labqret only with names&amp;nbsp;labqret.ABC_TS_YYMMB.&lt;/P&gt;
&lt;P&gt;The problem is that I get null result&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint ;
%let memlist=_null_;
  select catx('.',libname,memname)
    into :memlist separated by ' '
    from dictionary.members 
    where libname='labqret'
      and ((memname like 'ABC_TS_%'))
  ;
quit;
%put &amp;amp;memlist;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Jun 2021 05:50:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-list-of-data-sets-exists-in-permanent-library/m-p/746066#M233997</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-06-06T05:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of data sets exists in permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-list-of-data-sets-exists-in-permanent-library/m-p/746067#M233998</link>
      <description>&lt;P&gt;libnames and memnames are all uppercase in the dictionary tables.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 07:00:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-list-of-data-sets-exists-in-permanent-library/m-p/746067#M233998</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-06T07:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get list of data sets exists in permanent library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-list-of-data-sets-exists-in-permanent-library/m-p/746088#M234011</link>
      <description>&lt;P&gt;Exact same error as in your post &lt;A href="https://communities.sas.com/t5/SAS-Programming/Get-obs-without-null-values/m-p/542668" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Get-obs-without-null-values/m-p/542668&lt;/A&gt; from March 2019.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jun 2021 13:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-list-of-data-sets-exists-in-permanent-library/m-p/746088#M234011</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-06T13:11:18Z</dc:date>
    </item>
  </channel>
</rss>

