<?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 i need to compare all variables between two tables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591973#M15301</link>
    <description>&lt;P&gt;data a;&lt;/P&gt;&lt;P&gt;input id a b c;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 1.1 1.2 1.3&lt;/P&gt;&lt;P&gt;2 2.1 2.2 2.3&lt;/P&gt;&lt;P&gt;3 3.1 3.2 3.3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data b;&lt;/P&gt;&lt;P&gt;input idx abc bcd cde def efg fgh;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 1.1 1.2 1.3 1.4 1.5 1.6&lt;/P&gt;&lt;P&gt;2 2.1 2.2 2.3 2.4 2.5 2.6&lt;/P&gt;&lt;P&gt;3 3.1 3.2 3.3 2.4 2.5 2.6&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;a compare with abc&lt;/P&gt;&lt;P&gt;a&amp;nbsp;compare with bcd&lt;/P&gt;&lt;P&gt;a compare with cde&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i compare see the matching and nonmatching data.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 19:14:21 GMT</pubDate>
    <dc:creator>krishnaalla</dc:creator>
    <dc:date>2019-09-26T19:14:21Z</dc:date>
    <item>
      <title>i need to compare all variables between two tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591973#M15301</link>
      <description>&lt;P&gt;data a;&lt;/P&gt;&lt;P&gt;input id a b c;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 1.1 1.2 1.3&lt;/P&gt;&lt;P&gt;2 2.1 2.2 2.3&lt;/P&gt;&lt;P&gt;3 3.1 3.2 3.3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data b;&lt;/P&gt;&lt;P&gt;input idx abc bcd cde def efg fgh;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 1.1 1.2 1.3 1.4 1.5 1.6&lt;/P&gt;&lt;P&gt;2 2.1 2.2 2.3 2.4 2.5 2.6&lt;/P&gt;&lt;P&gt;3 3.1 3.2 3.3 2.4 2.5 2.6&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;a compare with abc&lt;/P&gt;&lt;P&gt;a&amp;nbsp;compare with bcd&lt;/P&gt;&lt;P&gt;a compare with cde&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can i compare see the matching and nonmatching data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591973#M15301</guid>
      <dc:creator>krishnaalla</dc:creator>
      <dc:date>2019-09-26T19:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: i need to compare all variables between two tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591986#M15302</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
merge a (keep=a)
	  b (keep=abc bcd cde); * can adjust or drop desired variables here) ;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is that what you're looking for? You can then create flags from here.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591986#M15302</guid>
      <dc:creator>maguiremq</dc:creator>
      <dc:date>2019-09-26T19:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: i need to compare all variables between two tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591990#M15303</link>
      <description>I need to see the match data all variable in one table with available&lt;BR /&gt;variables in another table&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591990#M15303</guid>
      <dc:creator>krishnaalla</dc:creator>
      <dc:date>2019-09-26T19:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: i need to compare all variables between two tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591997#M15304</link>
      <description>Given the above data, what do you want as output?</description>
      <pubDate>Thu, 26 Sep 2019 19:48:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591997#M15304</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-26T19:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: i need to compare all variables between two tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591998#M15305</link>
      <description>&lt;P&gt;compare every variable in one data set&amp;nbsp; with available variables in other data set.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/591998#M15305</guid>
      <dc:creator>krishnaalla</dc:creator>
      <dc:date>2019-09-26T19:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: i need to compare all variables between two tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/592001#M15306</link>
      <description>&lt;P&gt;What type of comparison? Equality, one greater than the other, within or out of a limit of difference, missing and not missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And really what the output of your comparison looks like.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/592001#M15306</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-26T19:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: i need to compare all variables between two tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/592003#M15307</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data have1;
&amp;nbsp; informat x1-x5 $8.;
&amp;nbsp; input R x1-x5;
&amp;nbsp; cards;
1 12 A B 14 12
2 C X 12 X 5
3 1 1 1 1 1
4 a b c d e
5 a a a a a
;
run;
&lt;BR /&gt;data have2;&lt;BR /&gt; &amp;nbsp; informat v1-v5 $8.;&lt;BR /&gt; &amp;nbsp; input R v1-v5;&lt;BR /&gt; &amp;nbsp; cards;&lt;BR /&gt; 1 12 d B 14 12&lt;BR /&gt; 2 C X 12 X 5&lt;BR /&gt; 3 1 1 1 1 1 &lt;BR /&gt; 4 a c c d e &lt;BR /&gt; 5 a a b a a ; &lt;BR /&gt;run; &lt;BR /&gt;&lt;BR /&gt;proc sort data=have1; by R;run;&lt;BR /&gt;proc sort data=have2; by R;run;&lt;BR /&gt;data want(drop=count i);
 merge have1&lt;BR /&gt;       have2;
array _v{*} v:; &lt;BR /&gt;array _v{*} v:;&lt;BR /&gt;array st{100} $25. ;
 do i=1 to dim(_v);&lt;BR /&gt; do j=1 to dim(_X);
&amp;nbsp; if _X{j}=_v{i} then st{i}="Match";else St{i}="Non Match";&lt;BR /&gt;end;&lt;BR /&gt; end;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 19:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/592003#M15307</guid>
      <dc:creator>krishnaalla</dc:creator>
      <dc:date>2019-09-26T19:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: i need to compare all variables between two tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/592004#M15308</link>
      <description>&lt;P&gt;i am able to compare have1 dataset 1st column with have2 dataset with 1st column..&lt;/P&gt;&lt;P&gt;like same its comparing 2nd to 2nd.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i need to see between 1st dataset column with all in 2nd dataset.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 20:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/592004#M15308</guid>
      <dc:creator>krishnaalla</dc:creator>
      <dc:date>2019-09-26T20:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: i need to compare all variables between two tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/592013#M15310</link>
      <description>```proc compare base=a comp=b(rename=(IDx=ID));&lt;BR /&gt;	var  a   a   a;&lt;BR /&gt;	with abc bcd cde;&lt;BR /&gt;	id ID;&lt;BR /&gt;run;&lt;BR /&gt;```</description>
      <pubDate>Thu, 26 Sep 2019 20:17:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/592013#M15310</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-09-26T20:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: i need to compare all variables between two tables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/592018#M15311</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/125819"&gt;@krishnaalla&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;i am able to compare have1 dataset 1st column with have2 dataset with 1st column..&lt;/P&gt;
&lt;P&gt;like same its comparing 2nd to 2nd.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but i need to see between 1st dataset column with all in 2nd dataset.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="4"&gt;You really need to show a worked example. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="4"&gt;There are quite a few issues that may popup.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="4"&gt;You say "with all in 2nd dataset".&amp;nbsp;Do you have a mix of character and numeric variables? What sort of comparison is to be done if one variable is character and the other numeric?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="4"&gt;If one data set has 4 variables and the other has 5 are you intending to create 20 new variables to hold the results of the comparison? How should the new variables be named? Are the names supposed to be automagically created by the code? So how many variables are actually involved?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" size="4"&gt;And what sort of value do you actually expect for a comparison?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 20:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/i-need-to-compare-all-variables-between-two-tables/m-p/592018#M15311</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-26T20:40:18Z</dc:date>
    </item>
  </channel>
</rss>

