<?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 HELP: update dataset problem in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/HELP-update-dataset-problem/m-p/75192#M21797</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm a new sas user and find it very interesting but just don't have the luck in finding answers on the help file.&lt;BR /&gt;
&lt;BR /&gt;
My problem is that I'm trying to use UPDATE statement to update my dataset, but it also includes the other observations w/c i don't need in my new data.&lt;BR /&gt;
&lt;BR /&gt;
Please see sample below:&lt;BR /&gt;
&lt;BR /&gt;
mydata1 (has 1,000 obs)&lt;BR /&gt;
mydata2 (has 3,000 obs)&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;data mynewdata;&lt;BR /&gt;
update mydata1 mydata2 UPDATEMODE=NOMISSINGCHECK|MISSINGCHECK;&lt;BR /&gt;
by acctno;&lt;BR /&gt;
run;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
w/c results to 3,000 obs&lt;BR /&gt;
&lt;BR /&gt;
How can I filter out (remove) the other data?&lt;BR /&gt;
&lt;BR /&gt;
Hoping for your suggestions. Thanks</description>
    <pubDate>Tue, 24 Feb 2009 02:54:27 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-02-24T02:54:27Z</dc:date>
    <item>
      <title>HELP: update dataset problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/HELP-update-dataset-problem/m-p/75192#M21797</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm a new sas user and find it very interesting but just don't have the luck in finding answers on the help file.&lt;BR /&gt;
&lt;BR /&gt;
My problem is that I'm trying to use UPDATE statement to update my dataset, but it also includes the other observations w/c i don't need in my new data.&lt;BR /&gt;
&lt;BR /&gt;
Please see sample below:&lt;BR /&gt;
&lt;BR /&gt;
mydata1 (has 1,000 obs)&lt;BR /&gt;
mydata2 (has 3,000 obs)&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;data mynewdata;&lt;BR /&gt;
update mydata1 mydata2 UPDATEMODE=NOMISSINGCHECK|MISSINGCHECK;&lt;BR /&gt;
by acctno;&lt;BR /&gt;
run;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
w/c results to 3,000 obs&lt;BR /&gt;
&lt;BR /&gt;
How can I filter out (remove) the other data?&lt;BR /&gt;
&lt;BR /&gt;
Hoping for your suggestions. Thanks</description>
      <pubDate>Tue, 24 Feb 2009 02:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/HELP-update-dataset-problem/m-p/75192#M21797</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-24T02:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: HELP: update dataset problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/HELP-update-dataset-problem/m-p/75193#M21798</link>
      <description>If you want to keep only which are in mydatset1, then you can say :&lt;BR /&gt;
&lt;BR /&gt;
data mynewdata;&lt;BR /&gt;
update mydata1 (in = in1)&lt;BR /&gt;
           mydata2 (in = in2);&lt;BR /&gt;
by acctno;&lt;BR /&gt;
          if in1; /* This keeps all records in mydata1*/&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Hope this answers your question.</description>
      <pubDate>Wed, 25 Feb 2009 15:28:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/HELP-update-dataset-problem/m-p/75193#M21798</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-25T15:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: HELP: update dataset problem</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/HELP-update-dataset-problem/m-p/75194#M21799</link>
      <description>thanks shalini, i will try this</description>
      <pubDate>Thu, 26 Feb 2009 01:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/HELP-update-dataset-problem/m-p/75194#M21799</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-26T01:48:23Z</dc:date>
    </item>
  </channel>
</rss>

