<?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: Seams simple enough, count(distinct( a:)) with wildcards in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60253#M17084</link>
    <description>Not sure I understand what you are looking for then.  Possibly something like?:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  select distinct count(*)&lt;BR /&gt;
    from sashelp.class&lt;BR /&gt;
      where upcase(name) like "J%"&lt;BR /&gt;
  ;&lt;BR /&gt;
quit;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Fri, 29 Apr 2011 20:22:03 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-04-29T20:22:03Z</dc:date>
    <item>
      <title>Seams simple enough, count(distinct( a:)) with wildcards</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60250#M17081</link>
      <description>All i'd like to do is to get a distinct count of all my vars that say start with a.&lt;BR /&gt;
like in the data step i could use something like Keep= a: ; and it would keep all me vars that started with a.&lt;BR /&gt;
&lt;BR /&gt;
Proc sql doesn't like the a: (like the a*) dos syntax in my SQL&lt;BR /&gt;
&lt;BR /&gt;
any ideas to create something like this?&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Fri, 29 Apr 2011 17:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60250#M17081</guid>
      <dc:creator>glmsas</dc:creator>
      <dc:date>2011-04-29T17:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Seams simple enough, count(distinct( a:)) with wildcards</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60251#M17082</link>
      <description>[pre]&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  select distinct count(*)&lt;BR /&gt;
    from dictionary.columns&lt;BR /&gt;
      where libname="SASHELP" and memname="CLASS" and&lt;BR /&gt;
        upcase(name) like "A%"&lt;BR /&gt;
  ;&lt;BR /&gt;
quit;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 29 Apr 2011 18:10:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60251#M17082</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-04-29T18:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Seams simple enough, count(distinct( a:)) with wildcards</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60252#M17083</link>
      <description>ok, it looks as thought that query is saying that there is one col/var in that Claas table that has var that starts with a A.&lt;BR /&gt;
&lt;BR /&gt;
what i'm tring to get is a count(distinct()) of all the values in that vars that are A%&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Fri, 29 Apr 2011 18:30:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60252#M17083</guid>
      <dc:creator>glmsas</dc:creator>
      <dc:date>2011-04-29T18:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Seams simple enough, count(distinct( a:)) with wildcards</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60253#M17084</link>
      <description>Not sure I understand what you are looking for then.  Possibly something like?:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  select distinct count(*)&lt;BR /&gt;
    from sashelp.class&lt;BR /&gt;
      where upcase(name) like "J%"&lt;BR /&gt;
  ;&lt;BR /&gt;
quit;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 29 Apr 2011 20:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60253#M17084</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-04-29T20:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Seams simple enough, count(distinct( a:)) with wildcards</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60254#M17085</link>
      <description>[pre]&lt;BR /&gt;
data class;&lt;BR /&gt;
   retain ab ac ae ag 8;&lt;BR /&gt;
   set sashelp.class;&lt;BR /&gt;
   run;&lt;BR /&gt;
proc freq data=class nlevels;&lt;BR /&gt;
   ods output nlevels=nlevels;&lt;BR /&gt;
   ods select nlevels;&lt;BR /&gt;
   tables a:;&lt;BR /&gt;
   run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 29 Apr 2011 20:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60254#M17085</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-04-29T20:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Seams simple enough, count(distinct( a:)) with wildcards</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60255#M17086</link>
      <description>proc sql;&lt;BR /&gt;
select count(distinct var)&lt;BR /&gt;
from work.table where var like 'A%';&lt;BR /&gt;
quit;</description>
      <pubDate>Sat, 30 Apr 2011 00:33:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Seams-simple-enough-count-distinct-a-with-wildcards/m-p/60255#M17086</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2011-04-30T00:33:08Z</dc:date>
    </item>
  </channel>
</rss>

