<?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: How to store many names of datasets (tables) in TAQMSEC as a string? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789144#M252478</link>
    <description>&lt;P&gt;If the datasets already exist then query the system metadata to generate the list.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
  select catx('.',libname,nliteral(memname))
    into :memlist separated by ' '
  from dictionary.member
  where libname='TAQMSEC'
    and memtype in ('DATA','VIEW')
  ;
%let nds=&amp;amp;sqlobs;
quit;
%put Found &amp;amp;nds members in TAQMSEC&amp;nbsp;libref&amp;nbsp;:&amp;nbsp;&amp;amp;memlist&amp;nbsp;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might want to also filter on MEMNAME if there are other datasets in that library you don't want to include in your list.&lt;/P&gt;</description>
    <pubDate>Sun, 09 Jan 2022 16:20:37 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-01-09T16:20:37Z</dc:date>
    <item>
      <title>How to store many names of datasets (tables) in TAQMSEC as a string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789124#M252473</link>
      <description>&lt;P&gt;hi, I want to create a string of dataset (table) names in TAQMSEC library and separate names by a space. Here since the name format is TAQMSEC.CTM_XXXXXXXX, I want to create a string which looks like:&amp;nbsp; "TAQMSEC.CTM_20150101 TAQMSEC.CTM_20150102 TAQMSEC.CTM_20150103...". Can someone help me?&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 12:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789124#M252473</guid>
      <dc:creator>ClayZhai</dc:creator>
      <dc:date>2022-01-09T12:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to store many names of datasets (tables) in TAQMSEC as a string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789128#M252474</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this what you want?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL_;
LENGTH d $ 1100;
 /* "TAQMSEC.CTM_20150101 TAQMSEC.CTM_20150102 TAQMSEC.CTM_20150103...". Can someone help me? */
 d="";
 do i=0 to 30;
  a='01JAN2015'd; 
  b=put(a,yymmddn8.); 
  c=INTNX('DAY',a,i);
  put c= yymmddn8.;
  d=strip(d) !! ' ' !! 'TAQMSEC.CTM_' !! strip(put(c,yymmddn8.));
  put d=;
 end;
 call symputx('myd',strip(d));
run;
%PUT &amp;amp;=myd;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 13:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789128#M252474</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-01-09T13:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to store many names of datasets (tables) in TAQMSEC as a string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789144#M252478</link>
      <description>&lt;P&gt;If the datasets already exist then query the system metadata to generate the list.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
  select catx('.',libname,nliteral(memname))
    into :memlist separated by ' '
  from dictionary.member
  where libname='TAQMSEC'
    and memtype in ('DATA','VIEW')
  ;
%let nds=&amp;amp;sqlobs;
quit;
%put Found &amp;amp;nds members in TAQMSEC&amp;nbsp;libref&amp;nbsp;:&amp;nbsp;&amp;amp;memlist&amp;nbsp;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might want to also filter on MEMNAME if there are other datasets in that library you don't want to include in your list.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jan 2022 16:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789144#M252478</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-09T16:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to store many names of datasets (tables) in TAQMSEC as a string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789294#M252546</link>
      <description>You're aware that you can wild card or use shortcut notation for listing data sets? Ie if you want all the 201501 data sets you could do:&lt;BR /&gt;&lt;BR /&gt;set TAQSEC.CTM_201501: ;&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;set TAQSEC.CTM_20150101-TAQSEC.CTM_20150131;</description>
      <pubDate>Mon, 10 Jan 2022 16:43:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789294#M252546</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-10T16:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to store many names of datasets (tables) in TAQMSEC as a string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789387#M252587</link>
      <description>&lt;P&gt;Thank you a lot. That is exactly what I want. BTW, in line 4, I guess it should be dictionary.members ('s' is missing).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 01:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789387#M252587</guid>
      <dc:creator>ClayZhai</dc:creator>
      <dc:date>2022-01-11T01:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to store many names of datasets (tables) in TAQMSEC as a string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789388#M252588</link>
      <description>&lt;P&gt;SAS uses singular for the SASHELP views and plural for the DICTIONARY psuedo tables. Makes it hard to remember whether or not to add the S.&lt;/P&gt;
&lt;PRE&gt;2226  proc sql;
2227  describe view sashelp.vmember;
NOTE: SQL view SASHELP.VMEMBER is defined as:

        select *
          from DICTIONARY.MEMBERS;
&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jan 2022 01:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-many-names-of-datasets-tables-in-TAQMSEC-as-a/m-p/789388#M252588</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-11T01:16:45Z</dc:date>
    </item>
  </channel>
</rss>

