<?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 is it possible to find from a library a dataset that contains two or more variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-is-it-possible-to-find-from-a-library-a-dataset-that/m-p/461011#M29726</link>
    <description>&lt;P&gt;Exactly the same, you just alter the where to fit your needs:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  select name,memname
  from dictionary.columns this
  where exists(select name from dictionary.columns where libname=this.libname and memname=this.memname and name="VAR1")
    and exists(select name from dictionary.columns where libname=this.libname and memname=this.memname and name="VAR1");
quit;&lt;/PRE&gt;</description>
    <pubDate>Wed, 09 May 2018 13:41:51 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-05-09T13:41:51Z</dc:date>
    <item>
      <title>How is it possible to find from a library a dataset that contains two or more variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-is-it-possible-to-find-from-a-library-a-dataset-that/m-p/461007#M29725</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used many times the following code to find in which dataset in a particular library, a variable exist?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select name,memname&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where libname EQ 'MYLIBRARY' and UPCASE(name) EQ 'CUSTOMERNUMBER' ;&lt;BR /&gt;quit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is it possible to find a dataset that contains two variables or more?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For exemple, if I am interested by var1 and var2, I would like to find a dataset Which have those two variables.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 13:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-is-it-possible-to-find-from-a-library-a-dataset-that/m-p/461007#M29725</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2018-05-09T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: How is it possible to find from a library a dataset that contains two or more variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-is-it-possible-to-find-from-a-library-a-dataset-that/m-p/461011#M29726</link>
      <description>&lt;P&gt;Exactly the same, you just alter the where to fit your needs:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  select name,memname
  from dictionary.columns this
  where exists(select name from dictionary.columns where libname=this.libname and memname=this.memname and name="VAR1")
    and exists(select name from dictionary.columns where libname=this.libname and memname=this.memname and name="VAR1");
quit;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 May 2018 13:41:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-is-it-possible-to-find-from-a-library-a-dataset-that/m-p/461011#M29726</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-09T13:41:51Z</dc:date>
    </item>
  </channel>
</rss>

