<?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: Merging Issue in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200903#M50149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your original post the attachment shows dates formatted the same so I can't see what the issue is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the only issue is the duplicate values add distinct to the join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select distinct a.*,b.plc&lt;/P&gt;&lt;P&gt;from have2 a full join&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have1 b on&lt;/P&gt;&lt;P&gt;a.date = b.date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 19:32:59 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2015-06-09T19:32:59Z</dc:date>
    <item>
      <title>Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200895#M50141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to merge two datasets. The reference column lists the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried formatting the dates in both the columns i.e. to ensure that formats in both the data sets are the same. I've tried date9., mmddyy10., mmddyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the distinct dates, to cross check if the merging was correct, I see the following situation:&lt;/P&gt;&lt;P&gt;Date,PLC&lt;/P&gt;&lt;P&gt;06/27/2014,1&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;06/27/2014,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;06/28/2014,1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;06/28/2014,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is just a sample of the output. I see a number of duplicate rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data data.hm1;&lt;/P&gt;&lt;P&gt;set data.hm1;&lt;/P&gt;&lt;P&gt;format date mmddyy10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=data.hm1;&lt;/P&gt;&lt;P&gt;by date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data data.S5_LTE;&lt;/P&gt;&lt;P&gt;set data.S5_LTE;&lt;/P&gt;&lt;P&gt;format date mmddyy10.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;data data.hm1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;set data.hm1;&lt;/P&gt;&lt;P&gt;plc1 = put(plc,6.);&lt;/P&gt;&lt;P&gt;drop plc;&lt;/P&gt;&lt;P&gt;rename plc1 = plc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=data.S5_LTE;&lt;/P&gt;&lt;P&gt;by date;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data data.S5_LTE;&lt;/P&gt;&lt;P&gt;merge data.S5_LTE ( in=a)&amp;nbsp; data.hm1(in=b) ;&lt;/P&gt;&lt;P&gt;by date ;&lt;/P&gt;&lt;P&gt;if a and b;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please suggest a way out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 13:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200895#M50141</guid>
      <dc:creator>Nimish_Vaddiparti</dc:creator>
      <dc:date>2015-06-09T13:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200896#M50142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide a small sample of the data you have and what you want it to look like?&amp;nbsp; I'm not sure what you are asking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 14:15:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200896#M50142</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-06-09T14:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200897#M50143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached two csv files for your reference. I'm trying to merge these files by using the date column for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200897#M50143</guid>
      <dc:creator>Nimish_Vaddiparti</dc:creator>
      <dc:date>2015-06-09T15:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200898#M50144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did a little guess work here.&amp;nbsp; Because I'm informatting the dates I don't know what your issue is.&amp;nbsp; I'm assuming you have one date as a number and one as a character.&amp;nbsp; If this is the case take a look at the new_date and this should help.&amp;nbsp; Also I'm not sure if you want a full join or left join the way I have it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have1;&lt;/P&gt;&lt;P&gt;infile cards dsd;&lt;/P&gt;&lt;P&gt;informat date mmddyy10.;&lt;/P&gt;&lt;P&gt;format date mmddyy10.;&lt;/P&gt;&lt;P&gt;input date plc;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;7/14/2014,1&lt;/P&gt;&lt;P&gt;7/21/2014,1&lt;/P&gt;&lt;P&gt;7/24/2014,1&lt;/P&gt;&lt;P&gt;7/28/2014,1&lt;/P&gt;&lt;P&gt;7/11/2014,1&lt;/P&gt;&lt;P&gt;7/14/2014,1&lt;/P&gt;&lt;P&gt;7/21/2014,1&lt;/P&gt;&lt;P&gt;7/28/2014,1&lt;/P&gt;&lt;P&gt;7/30/2014,1&lt;/P&gt;&lt;P&gt;7/8/2014,1&lt;/P&gt;&lt;P&gt;7/18/2014,1&lt;/P&gt;&lt;P&gt;7/28/2014,1&lt;/P&gt;&lt;P&gt;7/29/2014,1&lt;/P&gt;&lt;P&gt;7/1/2014,1&lt;/P&gt;&lt;P&gt;7/2/2014,1&lt;/P&gt;&lt;P&gt;7/3/2014,1&lt;/P&gt;&lt;P&gt;7/8/2014,1&lt;/P&gt;&lt;P&gt;7/11/2014,1&lt;/P&gt;&lt;P&gt;7/14/2014,1&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have2;&lt;/P&gt;&lt;P&gt;infile cards dsd;&lt;/P&gt;&lt;P&gt;length modelname $30. date $10.;&lt;/P&gt;&lt;P&gt;input modelname $ date $ sales lsales;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/14/2014,2,0.693147181&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/21/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/24/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/28/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/11/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/14/2014,2,0.693147181&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/21/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/28/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/30/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/8/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/18/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/28/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/29/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/1/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/2/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/3/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/8/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/11/2014,1,0&lt;/P&gt;&lt;P&gt;GALAXY_S5_BB_LTE-A*OFF*HM*010,7/14/2014,2,0.693147181&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want_date;&lt;/P&gt;&lt;P&gt;format new_date mmddyy10.;&lt;/P&gt;&lt;P&gt;set have2;&lt;/P&gt;&lt;P&gt;new_date = input(put(date,$10.),mmddyy10.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select a.*,b.plc&lt;/P&gt;&lt;P&gt;from want_date a full join&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have1 b on&lt;/P&gt;&lt;P&gt;a.new_date = b.date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:47:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200898#M50144</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-06-09T15:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200899#M50145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, i used the input suggestion. i get the following Warning 'Variable Date has already been defined as numeric'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also additionally see this statement in the log: &lt;/P&gt;&lt;P&gt;NOTE: Invalid argument to function INPUT at line 24 column 11.&lt;/P&gt;&lt;P&gt;Date=02/20/2013 N=1 Match=0 Holiday=0 Monday=0 Dum_Var=0 launch=0 plc=0 new_date=. _ERROR_=1 _N_=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know whats causing the issue?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200899#M50145</guid>
      <dc:creator>Nimish_Vaddiparti</dc:creator>
      <dc:date>2015-06-09T17:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200900#M50146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PS - you've understood the problem correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200900#M50146</guid>
      <dc:creator>Nimish_Vaddiparti</dc:creator>
      <dc:date>2015-06-09T17:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200901#M50147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If both of your date variables are numbers then you should be able to merge them, remove the piece of code with the input(put()) part and merge on date.&amp;nbsp; The reason for the 'want_date' datastep would be to turn a character variable into a number field with a date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select a.*,b.plc&lt;/P&gt;&lt;P&gt;from have2 a full join&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have1 b on&lt;/P&gt;&lt;P&gt;a.date = b.date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200901#M50147</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-06-09T17:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200902#M50148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's original problem I was referring to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I didn't format the dates and tried merging them, it led to duplicate values (please refer to the example in my original post).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried formatting the dates etc. but it hasn't helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you think of any other solution?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 19:21:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200902#M50148</guid>
      <dc:creator>Nimish_Vaddiparti</dc:creator>
      <dc:date>2015-06-09T19:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200903#M50149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your original post the attachment shows dates formatted the same so I can't see what the issue is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the only issue is the duplicate values add distinct to the join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select distinct a.*,b.plc&lt;/P&gt;&lt;P&gt;from have2 a full join&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have1 b on&lt;/P&gt;&lt;P&gt;a.date = b.date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 19:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200903#M50149</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-06-09T19:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200904#M50150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay. Let me spell out the issue again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I need to merge two data sets by using the date as a reference&lt;/P&gt;&lt;P&gt;2) When I did merge them, I noticed duplicate entries (selected distinct date &amp;amp; plc using proc sql).&lt;/P&gt;&lt;P&gt;3) Ideally for each date, there should only be one PLC value. But when i looked into dataset, there were two PLC values assigned for each date. e.g: &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;Date,PLC&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;06/27/2014,1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;06/27/2014,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;06/28/2014,1&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #f8f8f8;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;06/28/2014,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;5) I've tried converting all the PLC values to text (&amp;amp;all numeric as well), but it hasn't helped.&lt;/P&gt;&lt;P&gt;6) I then tried formatting the dates, but it hasn't helped either&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My merged dataset needs to have one PLC value for each date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do let me know if its still not clear.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nimish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 20:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200904#M50150</guid>
      <dc:creator>Nimish_Vaddiparti</dc:creator>
      <dc:date>2015-06-09T20:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200905#M50151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table want as&lt;/P&gt;&lt;P&gt;select distinct a.*,strip(b.plc) as plc&lt;/P&gt;&lt;P&gt;from have2 a full join&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; have1 b on&lt;/P&gt;&lt;P&gt;a.date = b.date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current guess is that it's the leading spaces before plc, strip() will remove the spaces and if that's the case it will remove the perceived duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 20:28:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200905#M50151</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-06-09T20:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200906#M50152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When reading the raw files, make sure that date values are really stored as SAS dates to avoid confusion.&lt;/P&gt;&lt;P&gt;Also read the plc as numeric, and sort the DS2 by date and plc with the nodupkey option &lt;SPAN style="text-decoration: underline;"&gt;before&lt;/SPAN&gt; merging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting a SAS NOTE in the log about multiple by values in more than one input dataset when doing a merge is usually a signal that something in the logic has gone astray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 06:57:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Merging-Issue/m-p/200906#M50152</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-06-10T06:57:21Z</dc:date>
    </item>
  </channel>
</rss>

