<?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: proc sql merge -error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157595#M30763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And, actually, I'm surprised you got so few.&amp;nbsp; When I ran your code I got: 847,103&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, replace the "run" statement with a "quit" statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2013 22:48:56 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2013-11-27T22:48:56Z</dc:date>
    <item>
      <title>proc sql merge -error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157591#M30759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use the code below to do a left out join and keep getting error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC SQL; &lt;/P&gt;&lt;P&gt; CREATE TABLE LEFT_OUTER_JOIN AS &lt;/P&gt;&lt;P&gt; SELECT * &lt;/P&gt;&lt;P&gt; FROM use(KEEP=IndIO ComIO ProducerPr PurchaserPr) &lt;/P&gt;&lt;P&gt; LEFT JOIN &lt;/P&gt;&lt;P&gt;Make (KEEP=IndOut) &lt;/P&gt;&lt;P&gt; ON use.IndIO = make.IndIO; &lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Column IndIO could not be found in the table/view identified with the correlation name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAKE.&lt;/P&gt;&lt;P&gt;ERROR: Column IndIO could not be found in the table/view identified with the correlation name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAKE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My use and make data are sas dataset. IndIo is Best $6, and Best $7. I wonder if this information difference is causng the error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and happy holidays,&lt;/P&gt;&lt;P&gt;Lan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 21:12:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157591#M30759</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-11-27T21:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql merge -error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157592#M30760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With make you are only keeping IndOut, but then trying to use make.IndIO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 21:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157592#M30760</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-11-27T21:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql merge -error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157593#M30761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Arthur!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the change&lt;/P&gt;&lt;P&gt;PROC SQL; &lt;/P&gt;&lt;P&gt; CREATE TABLE LEFT_OUTER_JOIN AS &lt;/P&gt;&lt;P&gt; SELECT * &lt;/P&gt;&lt;P&gt; FROM use(KEEP=IndIO ComIO ProducerPr PurchaserPr) &lt;/P&gt;&lt;P&gt; LEFT JOIN &lt;/P&gt;&lt;P&gt;Make (KEEP=IndIO IndOut) &lt;/P&gt;&lt;P&gt; ON use.IndIO = make.IndIO; &lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and got&amp;nbsp; 740119 rows, but is&lt;STRONG&gt; greater&lt;/STRONG&gt; than the number of observations in both datasets, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 22:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157593#M30761</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-11-27T22:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql merge -error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157594#M30762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Repeatsof the join key on either table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 22:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157594#M30762</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-11-27T22:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql merge -error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157595#M30763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And, actually, I'm surprised you got so few.&amp;nbsp; When I ran your code I got: 847,103&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, replace the "run" statement with a "quit" statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 22:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157595#M30763</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-11-27T22:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql merge -error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157596#M30764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have multiple records for the same value of the key (&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;IndIO&lt;/SPAN&gt;) in the RIGHT table (&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Make).&amp;nbsp; So if in the table MAKE there are 10 records with the same value of INDIO then every record from the LEFT table (&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;use&lt;/SPAN&gt;) with that value of INDIO will be replicated 10 time. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;You might want to add the DISTINCT keyword after the SELECT keyword.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 00:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157596#M30764</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-11-29T00:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql merge -error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157597#M30765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you ,&amp;nbsp; Tom. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 01:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157597#M30765</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-11-29T01:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql merge -error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157598#M30766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you , Arther.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 01:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-merge-error/m-p/157598#M30766</guid>
      <dc:creator>LanMin</dc:creator>
      <dc:date>2013-11-29T01:37:52Z</dc:date>
    </item>
  </channel>
</rss>

