<?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: Duplicate Column Error when Merging? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280242#M7961</link>
    <description>&lt;P&gt;I don't fully understand how you got the message "&lt;SPAN&gt;Duplicate column names have been detected in the above query which requested that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CORRESPONDING column names be matched.&lt;/SPAN&gt;" since I didn't see the query in question. But I figure that if you get the names to be distinct, you will understand what's going on.&lt;/P&gt;</description>
    <pubDate>Sun, 26 Jun 2016 17:41:17 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2016-06-26T17:41:17Z</dc:date>
    <item>
      <title>Duplicate Column Error when Merging?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280053#M7946</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm so close to finishing this!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My very last step is giving me this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Duplicate column names have been detected in the above query which requested that&lt;BR /&gt;CORRESPONDING column names be matched. This situation is ambiguous.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How the heck do I fix this? do I have to delete all duplicate column names somehow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to find all the duplicate column names in SAS?&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>Fri, 24 Jun 2016 19:24:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280053#M7946</guid>
      <dc:creator>christinagting0</dc:creator>
      <dc:date>2016-06-24T19:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Column Error when Merging?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280096#M7951</link>
      <description>&lt;P&gt;Use aliases&amp;nbsp;to make the column names distinct.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 22:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280096#M7951</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-24T22:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Column Error when Merging?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280228#M7958</link>
      <description>&lt;P&gt;Hi PG,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you or someone else please elaborate on this answer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why do I need to make the column names distinct? By Column names are you rerferring to the Variable names (i.e., making the variable names distinct)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example I have the following variabels from 2 separate datasets that I'm trying to merge into one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset 1&lt;/P&gt;&lt;P&gt;Variable A Variable B Variable C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset 2&lt;/P&gt;&lt;P&gt;Variable A Variable B Variable C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to merge these two datasets and all 3 variables. So Variable A from dataset 1 and 2 are in one column in the final merged dataset.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is why I don't understand why I need to make the column names distinct b/c I don't want them to be distinct. Unless I am misunderstanding the solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please explain to me in basic terms and with basic examples?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;When I am merging the 2 datasets I want all 3 variables to be merged together&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2016 16:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280228#M7958</guid>
      <dc:creator>christinagting0</dc:creator>
      <dc:date>2016-06-26T16:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Column Error when Merging?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280238#M7960</link>
      <description>Can you please attach the SAS program/log...</description>
      <pubDate>Sun, 26 Jun 2016 17:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280238#M7960</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-26T17:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicate Column Error when Merging?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280242#M7961</link>
      <description>&lt;P&gt;I don't fully understand how you got the message "&lt;SPAN&gt;Duplicate column names have been detected in the above query which requested that&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CORRESPONDING column names be matched.&lt;/SPAN&gt;" since I didn't see the query in question. But I figure that if you get the names to be distinct, you will understand what's going on.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jun 2016 17:41:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Duplicate-Column-Error-when-Merging/m-p/280242#M7961</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-26T17:41:17Z</dc:date>
    </item>
  </channel>
</rss>

