<?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 Merging in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging/m-p/5039#M2034</link>
    <description>Hi,&lt;BR /&gt;
 &lt;BR /&gt;
I have a Dataset A with the following &lt;BR /&gt;
 &lt;BR /&gt;
ID        SID      CID    IID        INM&lt;BR /&gt;
 &lt;BR /&gt;
A1        0         1      001       X&lt;BR /&gt;
A1        0         2      002       X&lt;BR /&gt;
A1        0         4      004       X&lt;BR /&gt;
A1        0         3      003       X&lt;BR /&gt;
 &lt;BR /&gt;
I have another Dataset B with the following&lt;BR /&gt;
 &lt;BR /&gt;
ID       SID       CID   &lt;BR /&gt;
 &lt;BR /&gt;
A1      421        4&lt;BR /&gt;
A1      422        4&lt;BR /&gt;
A1      121        1&lt;BR /&gt;
A1      122        1&lt;BR /&gt;
A1      123        1&lt;BR /&gt;
A1      321        3&lt;BR /&gt;
A1      221        2&lt;BR /&gt;
 &lt;BR /&gt;
I want to merge the Dataset A and Dataset B by CID and get the following output and the output order should be in the order of Dataset A.Look at the following output&lt;BR /&gt;
 &lt;BR /&gt;
ID        SID      CID    IID        INM&lt;BR /&gt;
 &lt;BR /&gt;
A1      121        1      001        X&lt;BR /&gt;
A1      122        1      001        X&lt;BR /&gt;
A1      123        1      001        X&lt;BR /&gt;
A1      221        2      002        X&lt;BR /&gt;
A1      421        4      004        X&lt;BR /&gt;
A1      422        4      004        X&lt;BR /&gt;
A1      321        3      003        X&lt;BR /&gt;
&lt;BR /&gt;
Can anyone help me in getting the above output using merge statement in SAS.&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
Regards,&lt;BR /&gt;
Siddhartha</description>
    <pubDate>Wed, 10 Oct 2007 16:48:23 GMT</pubDate>
    <dc:creator>Siddhartha</dc:creator>
    <dc:date>2007-10-10T16:48:23Z</dc:date>
    <item>
      <title>Merging</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging/m-p/5039#M2034</link>
      <description>Hi,&lt;BR /&gt;
 &lt;BR /&gt;
I have a Dataset A with the following &lt;BR /&gt;
 &lt;BR /&gt;
ID        SID      CID    IID        INM&lt;BR /&gt;
 &lt;BR /&gt;
A1        0         1      001       X&lt;BR /&gt;
A1        0         2      002       X&lt;BR /&gt;
A1        0         4      004       X&lt;BR /&gt;
A1        0         3      003       X&lt;BR /&gt;
 &lt;BR /&gt;
I have another Dataset B with the following&lt;BR /&gt;
 &lt;BR /&gt;
ID       SID       CID   &lt;BR /&gt;
 &lt;BR /&gt;
A1      421        4&lt;BR /&gt;
A1      422        4&lt;BR /&gt;
A1      121        1&lt;BR /&gt;
A1      122        1&lt;BR /&gt;
A1      123        1&lt;BR /&gt;
A1      321        3&lt;BR /&gt;
A1      221        2&lt;BR /&gt;
 &lt;BR /&gt;
I want to merge the Dataset A and Dataset B by CID and get the following output and the output order should be in the order of Dataset A.Look at the following output&lt;BR /&gt;
 &lt;BR /&gt;
ID        SID      CID    IID        INM&lt;BR /&gt;
 &lt;BR /&gt;
A1      121        1      001        X&lt;BR /&gt;
A1      122        1      001        X&lt;BR /&gt;
A1      123        1      001        X&lt;BR /&gt;
A1      221        2      002        X&lt;BR /&gt;
A1      421        4      004        X&lt;BR /&gt;
A1      422        4      004        X&lt;BR /&gt;
A1      321        3      003        X&lt;BR /&gt;
&lt;BR /&gt;
Can anyone help me in getting the above output using merge statement in SAS.&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
Regards,&lt;BR /&gt;
Siddhartha</description>
      <pubDate>Wed, 10 Oct 2007 16:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging/m-p/5039#M2034</guid>
      <dc:creator>Siddhartha</dc:creator>
      <dc:date>2007-10-10T16:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Merging</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging/m-p/5040#M2035</link>
      <description>Hi:&lt;BR /&gt;
  This is not an ODS or Base Reporting (PRINT, REPORT or TABULATE) question. The documentation on the MERGE statement is quite thorough and there are a lot of user-group papers on the topic of MERGING and JOINing tables together.&lt;BR /&gt;
 &lt;BR /&gt;
  Or, for specific help with your data, you might consider contacting Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 10 Oct 2007 20:02:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Merging/m-p/5040#M2035</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-10-10T20:02:03Z</dc:date>
    </item>
  </channel>
</rss>

