<?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 replace a column's value from another dataset in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882526#M39141</link>
    <description>&lt;P&gt;It worked. I am an idiot. For some reason I used SET instead of MERGE. Sorry for spamming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 20:19:25 GMT</pubDate>
    <dc:creator>cosmid</dc:creator>
    <dc:date>2023-06-26T20:19:25Z</dc:date>
    <item>
      <title>How to replace a column's value from another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882509#M39137</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have two datasets, One and Two, both has&amp;nbsp;a column named ID, how do I replace One's ID with Two's ID for just first 10 observations, ignoring all other vars?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 18:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882509#M39137</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2023-06-26T18:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a column's value from another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882511#M39138</link>
      <description>&lt;P&gt;Sounds like crazy thing to do.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  merge one two(keep=id obs=10);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jun 2023 18:59:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882511#M39138</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-26T18:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a column's value from another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882523#M39140</link>
      <description>&lt;P&gt;Oops...it seems that method didn't work. Instead of replacing the first 10 IDs it added 10 rows with the CMIDs fro the second dataset Two to the first dataset, One.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 20:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882523#M39140</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2023-06-26T20:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a column's value from another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882526#M39141</link>
      <description>&lt;P&gt;It worked. I am an idiot. For some reason I used SET instead of MERGE. Sorry for spamming.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 20:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882526#M39141</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2023-06-26T20:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a column's value from another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882535#M39145</link>
      <description>&lt;P&gt;If you want to use SET then add an IF statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set one;
  if _n_ &amp;lt;= 10 then set two(keep=id);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Jun 2023 20:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882535#M39145</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-26T20:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace a column's value from another dataset</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882674#M39161</link>
      <description>&lt;P&gt;Wow! Thanks! It would be nice if I can do that with SAS. A MERGE with and without BY confuses me enough, lol. I need to get more practice for sure. Thanks again for teaching me the trick with the use of SET!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 18:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-replace-a-column-s-value-from-another-dataset/m-p/882674#M39161</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2023-06-27T18:20:33Z</dc:date>
    </item>
  </channel>
</rss>

