<?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 merge two datasets and exclude date from one? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-two-datasets-and-exclude-date-from-one/m-p/520192#M141029</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   if 0 then set staff.staffchanges;
   if _N_ = 1 then do;
      declare hash h(staff.staffchanges);
      h.defineKey('empid');
      h.defineData(all:"Y");
      h.defineDone();
   end;

   set staff.staffmaster;

   rc=h.check();
   if rc ne 0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Dec 2018 22:50:24 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-12-10T22:50:24Z</dc:date>
    <item>
      <title>How to merge two datasets and exclude date from one?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-two-datasets-and-exclude-date-from-one/m-p/520188#M141026</link>
      <description>&lt;P&gt;I have attached the two datasets I'm working with. I need to merge the staffmaster&amp;nbsp;and staffchanges datasets but exclude the people found in the staff changes from the staffmaster dataset. How could I go about doing that? I've attached the two datasets.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 22:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-two-datasets-and-exclude-date-from-one/m-p/520188#M141026</guid>
      <dc:creator>sasnewbie5</dc:creator>
      <dc:date>2018-12-10T22:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two datasets and exclude date from one?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-two-datasets-and-exclude-date-from-one/m-p/520189#M141027</link>
      <description>&lt;P&gt;Assuming EmpId is Unique :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	merge staff.staffmaster(in=a) staff.staffchanges(in=b);
	by empid;

	if a and not b;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 22:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-two-datasets-and-exclude-date-from-one/m-p/520189#M141027</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2018-12-10T22:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two datasets and exclude date from one?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-two-datasets-and-exclude-date-from-one/m-p/520190#M141028</link>
      <description>&lt;P&gt;Simply:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table StaffCurrent as
select * from StaffMaster
where empId not in (select empId from StaffChanges);
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 22:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-two-datasets-and-exclude-date-from-one/m-p/520190#M141028</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-12-10T22:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two datasets and exclude date from one?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-two-datasets-and-exclude-date-from-one/m-p/520192#M141029</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
   if 0 then set staff.staffchanges;
   if _N_ = 1 then do;
      declare hash h(staff.staffchanges);
      h.defineKey('empid');
      h.defineData(all:"Y");
      h.defineDone();
   end;

   set staff.staffmaster;

   rc=h.check();
   if rc ne 0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Dec 2018 22:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-two-datasets-and-exclude-date-from-one/m-p/520192#M141029</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-12-10T22:50:24Z</dc:date>
    </item>
  </channel>
</rss>

