<?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 How to Merge datasets to ID's in both datasets. Error message uninitialized dataset? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593075#M170142</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Everything works until I attempt to merge.&amp;nbsp; No error is given. fiveb has 0 observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%mysort4(nypop,nypop_s,A);&lt;BR /&gt;%mysort4(nonnycvotes,nonnycvotes_s,A);&lt;BR /&gt;&lt;BR /&gt;data nypop_s; set nypop_s; run;&lt;BR /&gt;proc print data=nypop_s(firstobs= 1 obs= 10) label; run;&lt;BR /&gt;&lt;BR /&gt;data nonnycvotes_s; set nonnycvotes_s (rename=( L=L2 M=M2 U=U2) );&lt;BR /&gt;run;&lt;BR /&gt;proc print data=nonnycvotes_s(firstobs= 1 obs= 10) label; run;&lt;BR /&gt;&lt;BR /&gt;data fiveb;&lt;BR /&gt;merge nypop_s (in=makeup1) nonnycvotes_s (in=makeup2);&lt;BR /&gt;by A;&lt;BR /&gt;if makeup1 and makeup2;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Mary A. Marion&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 13:42:34 GMT</pubDate>
    <dc:creator>MaryA_Marion</dc:creator>
    <dc:date>2019-10-02T13:42:34Z</dc:date>
    <item>
      <title>How to Merge datasets to ID's in both datasets. Error message uninitialized dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593075#M170142</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Everything works until I attempt to merge.&amp;nbsp; No error is given. fiveb has 0 observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%mysort4(nypop,nypop_s,A);&lt;BR /&gt;%mysort4(nonnycvotes,nonnycvotes_s,A);&lt;BR /&gt;&lt;BR /&gt;data nypop_s; set nypop_s; run;&lt;BR /&gt;proc print data=nypop_s(firstobs= 1 obs= 10) label; run;&lt;BR /&gt;&lt;BR /&gt;data nonnycvotes_s; set nonnycvotes_s (rename=( L=L2 M=M2 U=U2) );&lt;BR /&gt;run;&lt;BR /&gt;proc print data=nonnycvotes_s(firstobs= 1 obs= 10) label; run;&lt;BR /&gt;&lt;BR /&gt;data fiveb;&lt;BR /&gt;merge nypop_s (in=makeup1) nonnycvotes_s (in=makeup2);&lt;BR /&gt;by A;&lt;BR /&gt;if makeup1 and makeup2;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Mary A. Marion&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 13:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593075#M170142</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2019-10-02T13:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge datasets to ID's in both datasets. Error message uninitialized dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593081#M170143</link>
      <description>Show your full log please.</description>
      <pubDate>Tue, 01 Oct 2019 15:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593081#M170143</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-01T15:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge datasets to ID's in both datasets. Error message uninitialized dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593094#M170146</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 13:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593094#M170146</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2019-10-02T13:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge datasets to ID's in both datasets. Error message uninitialized dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593101#M170150</link>
      <description>I can't download attachments, please post information directly into the forum or someone else will assist.</description>
      <pubDate>Tue, 01 Oct 2019 16:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593101#M170150</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-01T16:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Merge datasets to ID's in both datasets. Error message uninitialized dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593109#M170156</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16492"&gt;@MaryA_Marion&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Everything works until I attempt to merge.&amp;nbsp; No error is given. fiveb has 0 observations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%mysort4(nypop,nypop_s,A);&lt;BR /&gt;%mysort4(nonnycvotes,nonnycvotes_s,A);&lt;BR /&gt;&lt;BR /&gt;data nypop_s; set nypop_s; run;&lt;BR /&gt;proc print data=nypop_s(firstobs= 1 obs= 10) label; run;&lt;BR /&gt;&lt;BR /&gt;data nonnycvotes_s; set nonnycvotes_s (rename=( L=L2 M=M2 U=U2) );&lt;BR /&gt;run;&lt;BR /&gt;proc print data=nonnycvotes_s(firstobs= 1 obs= 10) label; run;&lt;BR /&gt;&lt;BR /&gt;data fiveb;&lt;BR /&gt;merge nypop_s (in=makeup1) nonnycvotes_s (in=makeup2);&lt;BR /&gt;by A;&lt;BR /&gt;if makeup1 and makeup2;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Mary A. Marion&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;With this code:&lt;/P&gt;
&lt;PRE&gt;data fiveb;
merge nypop_s (in=makeup1) nonnycvotes_s (in=makeup2);
by A;
if makeup1 and makeup2;
run;&lt;/PRE&gt;
&lt;P&gt;most likely there are NO matching values of the variable A in the two sets.&lt;/P&gt;
&lt;P&gt;Consider that the first value in the nonnycvoters&amp;nbsp; has a value of "Albany" and the first in nypopulation is "Albany County" it is pretty obvious that the values do not match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 16:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Merge-datasets-to-ID-s-in-both-datasets-Error-message/m-p/593109#M170156</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-02T16:02:00Z</dc:date>
    </item>
  </channel>
</rss>

