<?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 merge - proc sql join in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/merge-proc-sql-join/m-p/41065#M4895</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks&amp;nbsp; very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2012 11:55:37 GMT</pubDate>
    <dc:creator>nannà</dc:creator>
    <dc:date>2012-01-30T11:55:37Z</dc:date>
    <item>
      <title>merge - proc sql join</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/merge-proc-sql-join/m-p/41063#M4893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Hi, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;I usually use the data step below;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;data test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;&lt;SPAN style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;merge table_A (in=a) ﻿&lt;/SPAN&gt;table_B (in=b);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;by X Y;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;if a and not b;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Can I make the same result whit PROC SQL in Guide?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 9pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Any suggestions?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9;"&gt;&lt;SPAN lang="EN" style="font-size: 9pt; color: #333333; font-family: 'Arial','sans-serif';"&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 09:40:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/merge-proc-sql-join/m-p/41063#M4893</guid>
      <dc:creator>nannà</dc:creator>
      <dc:date>2012-01-30T09:40:47Z</dc:date>
    </item>
    <item>
      <title>merge - proc sql join</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/merge-proc-sql-join/m-p/41064#M4894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt; create table test as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; left join b&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; on&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.x=b.x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.y=b.y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; b.y=''&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the code in a Program node or click it together using a Query task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 09:54:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/merge-proc-sql-join/m-p/41064#M4894</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2012-01-30T09:54:58Z</dc:date>
    </item>
    <item>
      <title>merge - proc sql join</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/merge-proc-sql-join/m-p/41065#M4895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks&amp;nbsp; very much!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 11:55:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/merge-proc-sql-join/m-p/41065#M4895</guid>
      <dc:creator>nannà</dc:creator>
      <dc:date>2012-01-30T11:55:37Z</dc:date>
    </item>
  </channel>
</rss>

