<?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 Vs Join in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merge-Vs-Join/m-p/508406#M136547</link>
    <description>How to convert the following merge step into joins. I just given the structure of the merge and in similar fashion I need to achieve the same in Joins. &lt;BR /&gt;&lt;BR /&gt;Data merge;&lt;BR /&gt;If a(in=x) b(in=y);&lt;BR /&gt;By id; &lt;BR /&gt;If x and y; &lt;BR /&gt;Then;&lt;BR /&gt;Do; &lt;BR /&gt;F=7;&lt;BR /&gt;End; &lt;BR /&gt;If x; &lt;BR /&gt;Then;&lt;BR /&gt;Do; &lt;BR /&gt;F=3;&lt;BR /&gt;End; &lt;BR /&gt;If y; &lt;BR /&gt;Then; &lt;BR /&gt;Do; &lt;BR /&gt;F=9;&lt;BR /&gt;End; &lt;BR /&gt;Run; &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 29 Oct 2018 16:47:47 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2018-10-29T16:47:47Z</dc:date>
    <item>
      <title>Merge Vs Join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-Vs-Join/m-p/508406#M136547</link>
      <description>How to convert the following merge step into joins. I just given the structure of the merge and in similar fashion I need to achieve the same in Joins. &lt;BR /&gt;&lt;BR /&gt;Data merge;&lt;BR /&gt;If a(in=x) b(in=y);&lt;BR /&gt;By id; &lt;BR /&gt;If x and y; &lt;BR /&gt;Then;&lt;BR /&gt;Do; &lt;BR /&gt;F=7;&lt;BR /&gt;End; &lt;BR /&gt;If x; &lt;BR /&gt;Then;&lt;BR /&gt;Do; &lt;BR /&gt;F=3;&lt;BR /&gt;End; &lt;BR /&gt;If y; &lt;BR /&gt;Then; &lt;BR /&gt;Do; &lt;BR /&gt;F=9;&lt;BR /&gt;End; &lt;BR /&gt;Run; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 29 Oct 2018 16:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-Vs-Join/m-p/508406#M136547</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-10-29T16:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Vs Join</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merge-Vs-Join/m-p/508409#M136549</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;How to convert the following merge step into joins. I just given the structure of the merge and in similar fashion I need to achieve the same in Joins. &lt;BR /&gt;&lt;BR /&gt;Data merge;&lt;BR /&gt;If a(in=x) b(in=y);&lt;BR /&gt;By id; &lt;BR /&gt;If x and y; &lt;BR /&gt;Then;&lt;BR /&gt;Do; &lt;BR /&gt;F=7;&lt;BR /&gt;End; &lt;BR /&gt;If x; &lt;BR /&gt;Then;&lt;BR /&gt;Do; &lt;BR /&gt;F=3;&lt;BR /&gt;End; &lt;BR /&gt;If y; &lt;BR /&gt;Then; &lt;BR /&gt;Do; &lt;BR /&gt;F=9;&lt;BR /&gt;End; &lt;BR /&gt;Run; &lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Because of the way that SAS treats same-named variables in different data sets without a complete example for data in all data sets involved it is not possible to determine even if a similar join is possible. Since you do not actually show a MERGE statement (or SET or&amp;nbsp;other statement that&amp;nbsp;actually indicates source data sets)&amp;nbsp;in your example it is even harder. You example code will throw multiple errors as is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus, post code in code box opened with the forum's {I} menu icon so formatting such as indents are preserved.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 16:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merge-Vs-Join/m-p/508409#M136549</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-29T16:57:16Z</dc:date>
    </item>
  </channel>
</rss>

