<?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: Match/compare by many conditions/categories in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Match-compare-by-many-conditions-categories/m-p/149308#M11730</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! I could just try your code today and it works. I'm checking the results for corroborate they are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PD. &lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; Thanks for your help, I was trying to make the code for only one case but it was not easy get it done. I tried to make counters for both tables and create an extra column with the max value, after that I could make the comparison between number of registers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2015 21:25:42 GMT</pubDate>
    <dc:creator>fri0</dc:creator>
    <dc:date>2015-02-04T21:25:42Z</dc:date>
    <item>
      <title>Match/compare by many conditions/categories</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Match-compare-by-many-conditions-categories/m-p/149305#M11727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have a big problem trying to find a solution for a requirement... I've come to think that it's not possible to do.&lt;/P&gt;&lt;P&gt;I have 2 tables showing almost the same information. One is institucional info and another client info (I've attached bot of them in excel format because I had to change some confidential info).&lt;/P&gt;&lt;P&gt;Well, my problem is:&lt;/P&gt;&lt;P&gt;The idea is compare is some clients are copying institutional behavior... how? I have to check if any client from opsmesclient has made at least half of same operations of any institution from opsmesinst. Each register is a operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, for institution 00117138 I have to find if any client have made at least half of same operations (id column). 00117138 has 39 operations, has any client 20 same operations??? . If there is a coincidence I have to made a flag to identify them or create a table with the coincidence or any way to identify them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you could help me because I have no idea how to do this comparison. Thank very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 16:09:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Match-compare-by-many-conditions-categories/m-p/149305#M11727</guid>
      <dc:creator>fri0</dc:creator>
      <dc:date>2015-02-02T16:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Match/compare by many conditions/categories</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Match-compare-by-many-conditions-categories/m-p/149306#M11728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How big is your data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you program it for one iteration? Ie if you have one company and one institution can you solve the programming problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 16:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Match-compare-by-many-conditions-categories/m-p/149306#M11728</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-02T16:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Match/compare by many conditions/categories</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Match-compare-by-many-conditions-categories/m-p/149307#M11729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood what you mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;proc import datafile='c:\temp\opsmesinst.xls' out=inst dbms=excel replace;run;
proc import datafile='c:\temp\opsmescli.xls' out=client dbms=excel replace;run;


proc sql;
 create table want as 
&amp;nbsp; select distinct inst,cli
&amp;nbsp;&amp;nbsp; from inst as a,client as b
&amp;nbsp;&amp;nbsp;&amp;nbsp; where a.id=b.id
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by inst,cli
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; having count(*) ge (select count(*)/2 from inst where inst=a.inst);
quit;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 09:13:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Match-compare-by-many-conditions-categories/m-p/149307#M11729</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-02-03T09:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Match/compare by many conditions/categories</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Match-compare-by-many-conditions-categories/m-p/149308#M11730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! I could just try your code today and it works. I'm checking the results for corroborate they are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PD. &lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; Thanks for your help, I was trying to make the code for only one case but it was not easy get it done. I tried to make counters for both tables and create an extra column with the max value, after that I could make the comparison between number of registers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 21:25:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Match-compare-by-many-conditions-categories/m-p/149308#M11730</guid>
      <dc:creator>fri0</dc:creator>
      <dc:date>2015-02-04T21:25:42Z</dc:date>
    </item>
  </channel>
</rss>

