<?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 Wild Cards used in Proc SQl are different that those used in Data Step. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Wild-Cards-used-in-Proc-SQl-are-different-that-those-used-in/m-p/444448#M111277</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Proc Sql and wondering how to use wild cards such as 'SAS%' (SAS*) or 'SAS____ to identify the library names with SAS as prefix in the following code. Same is treu for the MAPS libraries as prefix or SAS as suffix.&lt;/P&gt;&lt;P&gt;Can someone explain these wild cards by showing side by side how they are different from data step.&lt;/P&gt;&lt;P&gt;Appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data metadata2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.vcolumn;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname not in ('SASHELP', "SASHELP",&amp;nbsp; 'SASUSER', 'SAMPSIO',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'SUBFUNC', 'MAPS', 'MAPSSAS', 'MAPSGFK', 'SAL428SL', 'STP:', 'TLV4');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 10 Mar 2018 20:03:56 GMT</pubDate>
    <dc:creator>Saraja</dc:creator>
    <dc:date>2018-03-10T20:03:56Z</dc:date>
    <item>
      <title>Wild Cards used in Proc SQl are different that those used in Data Step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wild-Cards-used-in-Proc-SQl-are-different-that-those-used-in/m-p/444448#M111277</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to Proc Sql and wondering how to use wild cards such as 'SAS%' (SAS*) or 'SAS____ to identify the library names with SAS as prefix in the following code. Same is treu for the MAPS libraries as prefix or SAS as suffix.&lt;/P&gt;&lt;P&gt;Can someone explain these wild cards by showing side by side how they are different from data step.&lt;/P&gt;&lt;P&gt;Appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data metadata2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set sashelp.vcolumn;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname not in ('SASHELP', "SASHELP",&amp;nbsp; 'SASUSER', 'SAMPSIO',&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;'SUBFUNC', 'MAPS', 'MAPSSAS', 'MAPSGFK', 'SAL428SL', 'STP:', 'TLV4');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 20:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wild-Cards-used-in-Proc-SQl-are-different-that-those-used-in/m-p/444448#M111277</guid>
      <dc:creator>Saraja</dc:creator>
      <dc:date>2018-03-10T20:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Wild Cards used in Proc SQl are different that those used in Data Step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wild-Cards-used-in-Proc-SQl-are-different-that-those-used-in/m-p/444455#M111281</link>
      <description>&lt;P&gt;The same syntax can be used with both. e.g.:&lt;/P&gt;
&lt;PRE&gt;data metadata2;
    set sashelp.vcolumn;
    where libname not like ('SAS%') and
          libname not like ('STP%') and
          libname not like ('MAPS%') and
          libname not in ('SAMPSIO','SUBFUNC', 'SAL428SL', 'TLV4');
run;

proc sql;
  create table metadata2 as
    select *
      from dictionary.columns
        where libname not like ('SAS%') and
              libname not like ('STP%') and
              libname not like ('MAPS%') and
              libname not in ('SAMPSIO','SUBFUNC', 'SAL428SL', 'TLV4')
  ;
quit;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 20:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wild-Cards-used-in-Proc-SQl-are-different-that-those-used-in/m-p/444455#M111281</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-03-10T20:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wild Cards used in Proc SQl are different that those used in Data Step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wild-Cards-used-in-Proc-SQl-are-different-that-those-used-in/m-p/444493#M111300</link>
      <description>Thank you very much Art, this code is very elegant.&lt;BR /&gt;I was hoping to put the wild card terms into the one list as in the last&lt;BR /&gt;line but looks like that its not possible.&lt;BR /&gt;Again, thanks !&lt;BR /&gt;</description>
      <pubDate>Sun, 11 Mar 2018 01:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wild-Cards-used-in-Proc-SQl-are-different-that-those-used-in/m-p/444493#M111300</guid>
      <dc:creator>Saraja</dc:creator>
      <dc:date>2018-03-11T01:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Wild Cards used in Proc SQl are different that those used in Data Step.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Wild-Cards-used-in-Proc-SQl-are-different-that-those-used-in/m-p/444497#M111302</link>
      <description>&lt;P&gt;Your use of colon in your initial example wouldn't have worked anyway. Here is a simplified version which, as you can see if you test it, doesn't work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data metadata2;
    set sashelp.vcolumn;
    where libname in ('SAS:');
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 02:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Wild-Cards-used-in-Proc-SQl-are-different-that-those-used-in/m-p/444497#M111302</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-03-11T02:09:43Z</dc:date>
    </item>
  </channel>
</rss>

