<?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: Error when merging data sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-when-merging-data-sets/m-p/124460#M25469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sure you will get better answers than this, but I think that keep=count statement has the result of only the variable 'count' being available for the merge.&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Nov 2012 13:50:07 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2012-11-13T13:50:07Z</dc:date>
    <item>
      <title>Error when merging data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-merging-data-sets/m-p/124459#M25468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;When I run the below data step to merge two data sets, I am getting the below errors for missing columns. However, both columns exist on both data sets. Is there something syntax-wise wrong? I have also sorted both data sets prior to running the merge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: BY variable cnty_name is not on input data set WORK.S1AGESHORTYEARFREQSORT.&lt;/P&gt;&lt;P&gt;ERROR: BY variable startyear is not on input data set WORK.S1AGESHORTYEARFREQSORT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data s1ageyear1;&lt;/P&gt;&lt;P&gt;merge work.s1ageshortyearfreqsort (keep=count rename=(count=cohortyearcount)) work.s1ageshorttestsort;&lt;/P&gt;&lt;P&gt;by cnty_name startyear;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 13:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-merging-data-sets/m-p/124459#M25468</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2012-11-13T13:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error when merging data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-merging-data-sets/m-p/124460#M25469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sure you will get better answers than this, but I think that keep=count statement has the result of only the variable 'count' being available for the merge.&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 13:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-merging-data-sets/m-p/124460#M25469</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-11-13T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error when merging data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-merging-data-sets/m-p/124461#M25470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="455729" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: I don't think he'll get a better answer than the one you provided!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 13:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-merging-data-sets/m-p/124461#M25470</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-11-13T13:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error when merging data sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-when-merging-data-sets/m-p/124462#M25471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was it, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 14:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-when-merging-data-sets/m-p/124462#M25471</guid>
      <dc:creator>Paul_NYS</dc:creator>
      <dc:date>2012-11-13T14:30:41Z</dc:date>
    </item>
  </channel>
</rss>

