<?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: Data Merge problem in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140707#M1364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As others already stated your results strongly indicate that your 2 tables are not matching over the keys used. The variables must be of the same type (character or numeric) for matching, e.g. &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;a.cycle_PK and b.cycle_IF must both be either numeric or both character. The format is not relevant. If the variables are character then leading blanks or different casing are treated as different strings (= no match). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;For character variables try adding something like "upcase(strip(a.&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;cycle_PK)) = upcase(strip(b.cycle_IF))".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For numeric variables with floating point values and the source tables coming from some data base what can happen is a very small "imprecision" when transferring the values from one environment to the other. So here try and use a round() function and see if this makes a difference, eg. &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; "round(a.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;cycle_PK,0.0000000001) = round(b.cycle_IF,&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;0.0000000001&lt;/SPAN&gt;)".&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 01 Feb 2015 03:58:18 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2015-02-01T03:58:18Z</dc:date>
    <item>
      <title>Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140697#M1354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to merge two data sets Table1 has 3000 observation and Table2 has 6000 observation. I am trying to merge two data sets with three different variable those are common in both data sets. So after executing the code below i get the Merge1 table with 6000 observation as expected. however the Merge1 table is missing the observation for the variable i selected from the Table1 which is a.ACCNR, A.AN, a. RLTVM ect.&amp;nbsp; I checked the format of all three variables that i am trying to join in both data set and the format are the same. Also when i replaced right join with left join in the code below, i am missing the observation from the Table2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have an idea why the resulting table is missing the observations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc sql;&lt;/P&gt;&lt;P&gt;create table Merge1 as&lt;/P&gt;&lt;P&gt;select&amp;nbsp;&amp;nbsp;&amp;nbsp; a.ACCNR, a.AN, a.RLTVM_BA,a.CYCLE_PK, a.site, a.conc, a.LNCONC, b.ACCNBR_IF, b.RLTVM_IF, b.ACTDATE, b.PKTM, b.CYCLE_IF, b.AN_IF&lt;/P&gt;&lt;P&gt;from Table1 a&lt;/P&gt;&lt;P&gt;right join Table2 b ON&amp;nbsp; a.AN=b.AN_if and A.RLTVM_BA=B.RLTVM_IF and a.cycle_PK=b.cycle_IF&lt;/P&gt;&lt;P&gt;order by AN;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 19:12:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140697#M1354</guid>
      <dc:creator>Virat</dc:creator>
      <dc:date>2015-01-27T19:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140698#M1355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am a data step person. While you wait for a SQL kind of guy, this is what I would do (specially because you have few observations and sorting is an option.&lt;/P&gt;&lt;P&gt;I hope I get it right that the key is all: an, rtlvm_ba, and cycle_pk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=table1; by an rltvm_ba cycle_pk; run;&lt;/P&gt;&lt;P&gt;proc sort data=table2; by an_if rltvm_if cycle_if; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data merge1;&lt;/P&gt;&lt;P&gt;merge table1 table2(rename=(an_if=an rltvm_if=rtlvm_ba cycle_if=cycle_pk));&lt;/P&gt;&lt;P&gt;by an rltvm_ba cycle_pk;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 19:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140698#M1355</guid>
      <dc:creator>M_Maldonado</dc:creator>
      <dc:date>2015-01-27T19:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140699#M1356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Migue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invalid rename values since i already have the same name variable in data=table1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 19:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140699#M1356</guid>
      <dc:creator>Virat</dc:creator>
      <dc:date>2015-01-27T19:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140700#M1357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your description is misleading, but I think you may want to do a full join and expect more than 6,000 observations to be output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, with a datastep merge, you can always include keep options along with your recode option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 20:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140700#M1357</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-01-27T20:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140701#M1358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought that an_if rltvm_if cycle_if in table 2 were equivalent to an rltvm_ba cycle_pk in table 1.&lt;/P&gt;&lt;P&gt;Then rename in both tables I guess?&lt;/P&gt;&lt;P&gt;please catch my back on typos if I made any!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=table1; by an rltvm_ba cycle_pk; run;&lt;/P&gt;&lt;P&gt;proc sort data=table2; by an_if rltvm_if cycle_if; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data merge1;&lt;/P&gt;&lt;P&gt;merge table1(rename=(an=an_global rltvm_ba=rtlvm_global cycle_pk=cycle_global)) table2(rename=(an_if=an_global rltvm_if=rtlvm_global cycle_if=cycle_global));&lt;/P&gt;&lt;P&gt;by an_global rltvm_global cycle_global;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 20:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140701#M1358</guid>
      <dc:creator>M_Maldonado</dc:creator>
      <dc:date>2015-01-27T20:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140702#M1359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You merged 3000 with 6000 and you have missing for some of the a.an and other variables I'm assuming? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means you didn't necessarily have a match between the observations, i.e. you have some combination in one table that's not in the other. &lt;/P&gt;&lt;P&gt;Your join has 3 variables, which you select from the larger table, except for AN variable. So you won't have any of the other 2 missing, but possibly the AN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you're seeing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you certain you have all of the matching records in each set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following to see if it helps to clarify the issues you're running into. Run a proc freq on the status variable to see what the issue might be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Proc sql;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;create table Merge1 as&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;select&amp;nbsp;&amp;nbsp;&amp;nbsp; a.ACCNR,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.AN,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.an_if,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.RLTVM_BA,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B.RLTVM_IF,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.CYCLE_PK,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.CYCLE_IF ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case when missing(a.an) then 'Table1 Missing'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else 'Match'&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end as status, &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.site,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.conc,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.LNCONC,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.ACCNBR_IF,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.RLTVM_IF,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.ACTDATE,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.PKTM &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;from Table1 a&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;right join Table2 b&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ON&amp;nbsp; a.AN=b.AN_if&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and A.RLTVM_BA=B.RLTVM_IF &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and a.cycle_PK=b.cycle_IF&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;order by AN;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 20:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140702#M1359</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-01-27T20:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140703#M1360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the full join and i got around 9000 observation which is not right either. The resulted merge1 table contain first 6000 records from table2 and then 3000 record from table1. which is not right because i now there are about 90%common obseration between table1 and tabl2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 20:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140703#M1360</guid>
      <dc:creator>Virat</dc:creator>
      <dc:date>2015-01-27T20:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140704#M1361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes i am certain that two datasets has common observation. I think the problem is a.cycle_PK and b.cycle_IF has&amp;nbsp; numeric character values. The format for cycle variable in both table were Character 20. I change the format to the numeric best12. Now i am missing those observation for which values entered in characters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does anyone know how to resolve the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 19:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140704#M1361</guid>
      <dc:creator>Virat</dc:creator>
      <dc:date>2015-01-30T19:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140705#M1362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza is right.&amp;nbsp; There are no matches.&amp;nbsp; Try printing a few unformatted values from one data set, and hard-code the search for them when reading the other data set.&amp;nbsp; You won't find any matches.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are dealing with character variables, watch for leading blanks that might cause a mismatch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 22:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140705#M1362</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-01-30T22:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140706#M1363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are merging on numeric ones be sure they are not influenced by calculations so you are caught by numeric precision differences.&lt;/P&gt;&lt;P&gt;Rounding in advance would solve that loophole. Changing a format is just fooling yourself, a format does not change the value just how the value is shown to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For a right join you will never get more ovservations as the of the right dataset, dropping the ones that cannot be merged.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Jan 2015 08:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140706#M1363</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-01-31T08:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Data Merge problem</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140707#M1364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As others already stated your results strongly indicate that your 2 tables are not matching over the keys used. The variables must be of the same type (character or numeric) for matching, e.g. &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;a.cycle_PK and b.cycle_IF must both be either numeric or both character. The format is not relevant. If the variables are character then leading blanks or different casing are treated as different strings (= no match). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;For character variables try adding something like "upcase(strip(a.&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;cycle_PK)) = upcase(strip(b.cycle_IF))".&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For numeric variables with floating point values and the source tables coming from some data base what can happen is a very small "imprecision" when transferring the values from one environment to the other. So here try and use a round() function and see if this makes a difference, eg. &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt; "round(a.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;cycle_PK,0.0000000001) = round(b.cycle_IF,&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;0.0000000001&lt;/SPAN&gt;)".&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Feb 2015 03:58:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Data-Merge-problem/m-p/140707#M1364</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-02-01T03:58:18Z</dc:date>
    </item>
  </channel>
</rss>

