<?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: Updating a column based on a join from a column on another table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Updating-a-column-based-on-a-join-from-a-column-on-another-table/m-p/61939#M13476</link>
    <description>Thanks Scott &lt;BR /&gt;
&lt;BR /&gt;
the merge worked fine.&lt;BR /&gt;
&lt;BR /&gt;
Lee</description>
    <pubDate>Thu, 25 Feb 2010 15:22:41 GMT</pubDate>
    <dc:creator>LeeJenson</dc:creator>
    <dc:date>2010-02-25T15:22:41Z</dc:date>
    <item>
      <title>Updating a column based on a join from a column on another table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-a-column-based-on-a-join-from-a-column-on-another-table/m-p/61937#M13474</link>
      <description>Hi, &lt;BR /&gt;
I don't mind if the solution is in PROC SQL or datastep but I am &lt;BR /&gt;
struggling with how to do this:- &lt;BR /&gt;
&lt;BR /&gt;
a=tablea &lt;BR /&gt;
b=tableb &lt;BR /&gt;
&lt;BR /&gt;
update tablea  &lt;BR /&gt;
set a.col1 = b.col1&lt;BR /&gt;
where a.col2 = b.col2 &lt;BR /&gt;
&lt;BR /&gt;
Regards &lt;BR /&gt;
Lee

Message was edited by: Lee2010</description>
      <pubDate>Thu, 25 Feb 2010 13:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-a-column-based-on-a-join-from-a-column-on-another-table/m-p/61937#M13474</guid>
      <dc:creator>LeeJenson</dc:creator>
      <dc:date>2010-02-25T13:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a column based on a join from a column on another table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-a-column-based-on-a-join-from-a-column-on-another-table/m-p/61938#M13475</link>
      <description>One option: a DATA step using properly sorted input and a MERGE with a BY statement.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Recommended Google advanced search argument, this topic/post:&lt;BR /&gt;
&lt;BR /&gt;
merge processing site:sas.com</description>
      <pubDate>Thu, 25 Feb 2010 13:47:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-a-column-based-on-a-join-from-a-column-on-another-table/m-p/61938#M13475</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-02-25T13:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a column based on a join from a column on another table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-a-column-based-on-a-join-from-a-column-on-another-table/m-p/61939#M13476</link>
      <description>Thanks Scott &lt;BR /&gt;
&lt;BR /&gt;
the merge worked fine.&lt;BR /&gt;
&lt;BR /&gt;
Lee</description>
      <pubDate>Thu, 25 Feb 2010 15:22:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-a-column-based-on-a-join-from-a-column-on-another-table/m-p/61939#M13476</guid>
      <dc:creator>LeeJenson</dc:creator>
      <dc:date>2010-02-25T15:22:41Z</dc:date>
    </item>
  </channel>
</rss>

