<?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 to find the Mismatched records? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441229#M110342</link>
    <description>&lt;P&gt;Done already. it's 0 observations.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2018 15:46:05 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2018-03-01T15:46:05Z</dc:date>
    <item>
      <title>How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441221#M110336</link>
      <description>&lt;P&gt;I ran the following code to find the records which are available in A and not in B. I've 5918065 records in A dataset and 5902253 records in B dataset and I want to see the missing&amp;nbsp;15812 records. After running this code, I see only a 12180 records in 'Non_Matching_Feb_2017' dataset instead of 15812. Could someone of you help me with the code to see the missing 15812 records in Dataset B?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Matching_Feb_2017 Non_Matching_Feb_2017;

merge Feb_nbrs_without_dt(in=a) source_33_count(in=b);

by POLICY_No;

if a and b then output Matching_Feb_2017;

if a and not b then output Non_Matching_Feb_2017;

run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: MERGE statement has more than one data set with repeats of BY values.
NOTE: There were 5918065 observations read from the data set WORK.FEB_NBRS_WITHOUT_DT.
NOTE: There were 5902253 observations read from the data set WORK.SOURCE_33_COUNT.
NOTE: The data set WORK.MATCHING_FEB_2017 has 5905885 observations and 34 variables.
NOTE: The data set WORK.NON_MATCHING_FEB_2017 has 12180 observations and 34 variables.
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:24:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441221#M110336</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-01T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441222#M110337</link>
      <description>&lt;P&gt;did you check to see if you have records in b that are not in a?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441222#M110337</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-03-01T15:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441225#M110340</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Table A has 5,918,065 and Table B has 5,902,253 records why are you expecting that all records from table B are present in Table A.&lt;/P&gt;&lt;P&gt;In your condition your are saying that get all the records if Policy_no is present in Table A and Not present in Table B.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441225#M110340</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-01T15:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441229#M110342</link>
      <description>&lt;P&gt;Done already. it's 0 observations.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441229#M110342</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-01T15:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441230#M110343</link>
      <description>&lt;P&gt;I'm not excepting a&lt;SPAN&gt;ll records from table B should be present in Table A. I would like to see the records which are available in A dataset and not in B dataset irrespective of any condition. Could you please help with the SQL to achieve this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441230#M110343</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-01T15:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441237#M110346</link>
      <description>&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; abc &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;distinct&lt;/FONT&gt; * &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; a&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; policy_no &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;not&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;in&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;select&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;distinct&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; policy_no&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; b);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441237#M110346</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-03-01T15:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441238#M110347</link>
      <description>&lt;P&gt;Did you check for duplicate values in the data-sets?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441238#M110347</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-01T15:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441244#M110350</link>
      <description>&lt;P&gt;Actually, the 12,180 number is correct.&amp;nbsp; But other issues require attention.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, POLICY_NO is not unique.&amp;nbsp; It is not unique in the data set A, and not unique in data set B.&amp;nbsp; That's what this line is telling you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token statement"&gt;NOTE&lt;/SPAN&gt;: &lt;SPAN class="token keyword"&gt;MERGE&lt;/SPAN&gt; statement has more than one &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;set&lt;/SPAN&gt; with repeats of &lt;SPAN class="token statement"&gt;BY&lt;/SPAN&gt; values&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe that means you have to fix the data first.&amp;nbsp; Maybe that means you should be merging by more than one variable instead of just by POLICY_NO.&amp;nbsp; Maybe that means you need to adjust your expectations about the number of observations.&amp;nbsp; Ironically, however, the 12,180 number is correct.&amp;nbsp; There are 12,180 observations where the POLICY_NO appears in A but not in B.&amp;nbsp; That might represent 12,180 unique policy numbers, or it might represent 1 POLICY_NO that appears 12,180 times in the data set A (or some "in between" mix).&amp;nbsp; You would need to inspect the output data set to determine that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take this example:&amp;nbsp; POLICY_NO "ABC" appears 1,000 times in data set A, but not at all in data set B.&amp;nbsp; There would be 1,000 more observations in data set A than in data set B.&amp;nbsp; But only one POLICY_NO that is mismatched.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441244#M110350</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-01T16:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441247#M110351</link>
      <description>Yes,  there are duplicates but still it is not matching the number what I&lt;BR /&gt;expect. I'm not certain whether changing the by variable will work here.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441247#M110351</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-01T16:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441252#M110354</link>
      <description>&lt;P&gt;Change the BY variable so that you have all unique values in both the tables. If you don't get what you expected then you may have duplicates through all the by vars.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check id proc sort nodupkey removes any duplicates in both the tables for the BY variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why are you worried about the counts, the process your trying is giving you the right output and you may not be right about the count your expecting because you are including the duplicate records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:15:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441252#M110354</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-01T16:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441256#M110356</link>
      <description>In order to get the number what I expect, can I merge it with all the&lt;BR /&gt;variables?&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441256#M110356</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-01T16:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441259#M110358</link>
      <description>&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;Data&lt;/SPAN&gt; Matching_Feb_2017 Non_Matching_Feb_2017 CHECK_DATA&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token keyword"&gt;merge&lt;/SPAN&gt; Feb_nbrs_without_dt&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;a&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; source_33_count&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;in&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;b&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token statement"&gt;by&lt;/SPAN&gt; POLICY_No&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt; a and b &lt;SPAN class="token keyword"&gt;then&lt;/SPAN&gt; output Matching_Feb_2017&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt; a and &lt;SPAN class="token operator"&gt;not&lt;/SPAN&gt; b &lt;SPAN class="token keyword"&gt;then&lt;/SPAN&gt; output Non_Matching_Feb_2017&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;if b and not a then output check_data;

&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post the log from the code above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second - this type of message usually means your join needs another variable. So which SET of variables uniquely identify each record, it's clearly not just Policy_NO. If it's insurance policy there's usually a start or end date or renewal number that can be used as well to join because my policy number doesn't change every year, but it has a new entry in the data every year.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441259#M110358</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-01T16:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441263#M110361</link>
      <description>&lt;P&gt;Here you go:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: MERGE statement has more than one data set with repeats of BY values.
NOTE: There were 5918065 observations read from the data set WORK.FEB_NBRS_WITHOUT_DT.
NOTE: There were 5902253 observations read from the data set WORK.SOURCE_33_COUNT.
NOTE: The data set WORK.MATCHING_FEB_2017 has 5905885 observations and 34 variables.
NOTE: The data set WORK.NON_MATCHING_FEB_2017 has 12180 observations and 34 variables.
NOTE: The data set WORK.CHECK_DATA has 0 observations and 34 variables.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441263#M110361</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-01T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441281#M110366</link>
      <description>&lt;P&gt;With the below code, I'm getting the desired number in the output. Now could you please help me how can I say to the layman why 15812 records are not matching in 'Non_Matching_Feb_2017' dataset? Since I'm new to the banking and insurance domain I find difficult to convey my output verbally to the layman.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Matching_Feb_2017 Non_Matching_Feb_2017;

merge Feb_nbrs_without_dt(in=a) source_33_count(in=b);

by POLICY_No PREMIUM_BEG_DT;

if a and b then output Matching_Feb_2017;

if a and not b then output Non_Matching_Feb_2017;

/*if b and not a then output Non_Matching_Dec_2016;*/

run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441281#M110366</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-01T16:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441284#M110368</link>
      <description>&lt;P&gt;You start with :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FEB_NBRS_WITHOUT_DT -&amp;gt; 5,918,065&lt;/P&gt;
&lt;P&gt;SOURCE_33_COUNT -&amp;gt; 5,902,253&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Your assumption: 5, 918,065 - 5902, 253 = 15,812 records that are not in&amp;nbsp;the first data set.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The total number of records remains 5,918,065, of those:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;5,905,885 are in both data sets&lt;/LI&gt;
&lt;LI&gt;12,180 records are not in the first data set&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you post some sample data, smaller fake data so we can illustrate how this can happen, but basically when you have a&amp;nbsp; many to many merge SAS doesn't merge properly and you need to use a SQL merge instead to fix this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441284#M110368</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-01T16:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441285#M110369</link>
      <description>during Feb 15812 records where not found with a policy number and a premium begin date, This affected 12180 policies.&lt;BR /&gt;think this states your meaning.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441285#M110369</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-03-01T16:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441288#M110370</link>
      <description>&lt;P&gt;You joined on the wrong fields initially. When you merge you need to understand how to uniquely identify records and you didn't identify a unique record correctly, which is why it was a many to many merge. With the new key, date, you've uniquely identified each record.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest taking a smaller subset, merging it and looking at some records manually to understand how this happened.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the explaining we do won't be as effective as you figuring out how to test it and look at it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It helps if you always try to understand the problem contextually before you program it and of course, &lt;EM&gt;&lt;STRONG&gt;&lt;U&gt;know thy data&lt;/U&gt;&lt;/STRONG&gt;&lt;/EM&gt; is the golden rule of analysis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 17:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441288#M110370</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-01T17:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441440#M110443</link>
      <description>5905885 is less than the number of records in source_33_count dataset.  How&lt;BR /&gt;it is possible?&lt;BR /&gt;</description>
      <pubDate>Fri, 02 Mar 2018 01:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441440#M110443</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-02T01:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441443#M110444</link>
      <description>&lt;P&gt;Can you please add some context to that statement. Pretend I can’t see your computer, data, or code and have no idea what you’re talking about.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt; wrote:&lt;BR /&gt;5905885 is less than the number of records in source_33_count dataset. How&lt;BR /&gt;it is possible?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 01:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441443#M110444</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-02T01:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the Mismatched records?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441510#M110468</link>
      <description>&lt;P&gt;Something from Banking Domain:&lt;BR /&gt;1. Policy are renewed all the time, and in database we create a new record with a new start date for the renewed policy number.&lt;BR /&gt;2. IN Database we see Policy as Service, so we usually have a service serno assigned to each record which is usually the Primary key.&lt;BR /&gt;3. If you do not know the Primary key then you can certainly use Policy number, Start date/End Date and policy type together for an accurate result.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 09:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-the-Mismatched-records/m-p/441510#M110468</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2018-03-02T09:24:41Z</dc:date>
    </item>
  </channel>
</rss>

