<?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: How to combine 2 data set in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-combine-2-data-set/m-p/36924#M4582</link>
    <description>Assuming you want to keep table A as is, and then add a field Y from table B where partno matches.&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
    create table NEWTABLE as&lt;BR /&gt;
    select&lt;BR /&gt;
        A.*,&lt;BR /&gt;
        B.Y&lt;BR /&gt;
    from&lt;BR /&gt;
        A&lt;BR /&gt;
&lt;BR /&gt;
        left join B&lt;BR /&gt;
        on A.partno = B.partno&lt;BR /&gt;
    ;&lt;BR /&gt;
quit;</description>
    <pubDate>Thu, 07 Aug 2008 08:52:50 GMT</pubDate>
    <dc:creator>david_offlode</dc:creator>
    <dc:date>2008-08-07T08:52:50Z</dc:date>
    <item>
      <title>How to combine 2 data set</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-combine-2-data-set/m-p/36923#M4581</link>
      <description>I have 2 table, table A  (200 records) &amp;amp; table B (100 records). 2 table have the same field - partno.&lt;BR /&gt;
I like to update "Y" into a field available in table A if partno in A =partno in B. But I do not know how to write the statement. If anyone know, pls could you share it to me. Thanks a lot</description>
      <pubDate>Thu, 07 Aug 2008 03:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-combine-2-data-set/m-p/36923#M4581</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-07T03:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine 2 data set</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-combine-2-data-set/m-p/36924#M4582</link>
      <description>Assuming you want to keep table A as is, and then add a field Y from table B where partno matches.&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
    create table NEWTABLE as&lt;BR /&gt;
    select&lt;BR /&gt;
        A.*,&lt;BR /&gt;
        B.Y&lt;BR /&gt;
    from&lt;BR /&gt;
        A&lt;BR /&gt;
&lt;BR /&gt;
        left join B&lt;BR /&gt;
        on A.partno = B.partno&lt;BR /&gt;
    ;&lt;BR /&gt;
quit;</description>
      <pubDate>Thu, 07 Aug 2008 08:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-combine-2-data-set/m-p/36924#M4582</guid>
      <dc:creator>david_offlode</dc:creator>
      <dc:date>2008-08-07T08:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to combine 2 data set</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-combine-2-data-set/m-p/36925#M4583</link>
      <description>Maybe this is a little closer...:&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table NEWTABLE as&lt;BR /&gt;
select&lt;BR /&gt;
A.*,&lt;BR /&gt;
case B.partno&lt;BR /&gt;
when . then 'N'&lt;BR /&gt;
else 'Y'&lt;BR /&gt;
end as updated&lt;BR /&gt;
from A&lt;BR /&gt;
left join B&lt;BR /&gt;
on A.partno = B.partno&lt;BR /&gt;
;&lt;BR /&gt;
quit; &lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Linus</description>
      <pubDate>Mon, 18 Aug 2008 11:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-combine-2-data-set/m-p/36925#M4583</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-08-18T11:23:26Z</dc:date>
    </item>
  </channel>
</rss>

