<?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: PROC CONTENTS can you Fuzzy seach for variables? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/PROC-CONTENTS-can-you-Fuzzy-seach-for-variables/m-p/5347#M2070</link>
    <description>Hi:&lt;BR /&gt;
  Do you mean something like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  create table work.varlist as&lt;BR /&gt;
  select libname, memname, name, type, label, format &lt;BR /&gt;
  from dictionary.columns&lt;BR /&gt;
  where upcase(libname) = 'SASHELP' and&lt;BR /&gt;
        upcase(memname) = 'SHOES' and&lt;BR /&gt;
        name contains 'ry';&lt;BR /&gt;
quit;&lt;BR /&gt;
     &lt;BR /&gt;
proc print data=work.varlist;&lt;BR /&gt;
title 'Variables from SASHELP.SHOES that contain the string "ry"';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 and the output from the job is:&lt;BR /&gt;
[pre]&lt;BR /&gt;
            Variables from SASHELP.SHOES that contain the string "ry"&lt;BR /&gt;
&lt;BR /&gt;
          Obs    libname    memname       name       type         label          format&lt;BR /&gt;
&lt;BR /&gt;
           1     SASHELP     SHOES     Subsidiary    char&lt;BR /&gt;
           2     SASHELP     SHOES     Inventory     num     Total Inventory    DOLLAR12.&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
In this example, the search is for something about the variable NAME as the selection criteria. &lt;BR /&gt;
On the other hand, you may actually want to find something about a variable value using a search -- which would require reading the actual file itself instead of dictionary.columns.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 02 Nov 2007 14:56:37 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-11-02T14:56:37Z</dc:date>
    <item>
      <title>PROC CONTENTS can you Fuzzy seach for variables?</title>
      <link>https://communities.sas.com/t5/Developers/PROC-CONTENTS-can-you-Fuzzy-seach-for-variables/m-p/5346#M2069</link>
      <description>I am working from time to time with very large datasets and I was wondering if there is a way to fuzzy search using PROC CONTENTS or some other method to list specific fields matching one criteria or another.&lt;BR /&gt;
&lt;BR /&gt;
Of course the fallback way is to just do a CTRL-F but that is really inefficient when you have dataset with two thousand variables.&lt;BR /&gt;
&lt;BR /&gt;
TX</description>
      <pubDate>Fri, 02 Nov 2007 14:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-CONTENTS-can-you-Fuzzy-seach-for-variables/m-p/5346#M2069</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-11-02T14:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC CONTENTS can you Fuzzy seach for variables?</title>
      <link>https://communities.sas.com/t5/Developers/PROC-CONTENTS-can-you-Fuzzy-seach-for-variables/m-p/5347#M2070</link>
      <description>Hi:&lt;BR /&gt;
  Do you mean something like this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  create table work.varlist as&lt;BR /&gt;
  select libname, memname, name, type, label, format &lt;BR /&gt;
  from dictionary.columns&lt;BR /&gt;
  where upcase(libname) = 'SASHELP' and&lt;BR /&gt;
        upcase(memname) = 'SHOES' and&lt;BR /&gt;
        name contains 'ry';&lt;BR /&gt;
quit;&lt;BR /&gt;
     &lt;BR /&gt;
proc print data=work.varlist;&lt;BR /&gt;
title 'Variables from SASHELP.SHOES that contain the string "ry"';&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 and the output from the job is:&lt;BR /&gt;
[pre]&lt;BR /&gt;
            Variables from SASHELP.SHOES that contain the string "ry"&lt;BR /&gt;
&lt;BR /&gt;
          Obs    libname    memname       name       type         label          format&lt;BR /&gt;
&lt;BR /&gt;
           1     SASHELP     SHOES     Subsidiary    char&lt;BR /&gt;
           2     SASHELP     SHOES     Inventory     num     Total Inventory    DOLLAR12.&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
In this example, the search is for something about the variable NAME as the selection criteria. &lt;BR /&gt;
On the other hand, you may actually want to find something about a variable value using a search -- which would require reading the actual file itself instead of dictionary.columns.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 02 Nov 2007 14:56:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-CONTENTS-can-you-Fuzzy-seach-for-variables/m-p/5347#M2070</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-11-02T14:56:37Z</dc:date>
    </item>
  </channel>
</rss>

