<?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: Merging Data Sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627312#M185152</link>
    <description>&lt;P&gt;Many of us will not download attachments. Please just include the code and the error in your message.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2020 20:10:08 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-02-25T20:10:08Z</dc:date>
    <item>
      <title>Merging Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627311#M185151</link>
      <description>&lt;P&gt;I am trying to merge 2 data sets: ribs and shrimp. I am getting this error message.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 20:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627311#M185151</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-25T20:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627312#M185152</link>
      <description>&lt;P&gt;Many of us will not download attachments. Please just include the code and the error in your message.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 20:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627312#M185152</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-25T20:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627314#M185154</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;DATA New-Dataset-Name (OPTIONS);
    MERGE Dataset-Name-1 (OPTIONS) Dataset-Name-2 (OPTIONS);
    BY Variable(s);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;ERROR: Tables with 0 columns are not supported by this object. Work.BBQ cannot be opened. Do you want to select a different table to open?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 20:13:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627314#M185154</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-25T20:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627316#M185156</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/313820"&gt;@harveysarah0&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;DATA New-Dataset-Name (OPTIONS);
    MERGE Dataset-Name-1 (OPTIONS) Dataset-Name-2 (OPTIONS);
    BY Variable(s);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is not your actual code. We need to see the actual code that you ran which produced the error message.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 20:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627316#M185156</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-25T20:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627322#M185160</link>
      <description>It means one of your data sets is empty so it cannot be merged. My guess is you have an error in your process earlier at some point that was missed somehow.</description>
      <pubDate>Tue, 25 Feb 2020 20:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627322#M185160</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-25T20:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627329#M185163</link>
      <description>&lt;P&gt;data shrimp;&lt;BR /&gt;input City :$20. State :$3. Shrimp :$3.;&lt;BR /&gt;cards;&lt;BR /&gt;Baltimore MD Yes&lt;BR /&gt;Brooklyn NY No&lt;BR /&gt;Buffalo NY Yes&lt;BR /&gt;Harlem NY No&lt;BR /&gt;Newark NJ Yes&lt;BR /&gt;Rochester NY Yes&lt;BR /&gt;Stamford CT Yes&lt;BR /&gt;Syracuse NY Yes&lt;BR /&gt;Troy NY Yes&lt;BR /&gt;;&lt;BR /&gt;data ribs;&lt;BR /&gt;input City :$15. State :$2. Price;&lt;BR /&gt;cards;&lt;BR /&gt;Baltimore MD 10.95&lt;BR /&gt;Brooklyn NY 12.99&lt;BR /&gt;Buffalo NY 11.50&lt;BR /&gt;Harlem NY 12.50&lt;BR /&gt;Newark NJ 11.50&lt;BR /&gt;Rochester NY 10.95&lt;BR /&gt;Stamford CT 11.50&lt;BR /&gt;Syracuse NY 10.95&lt;BR /&gt;Troy NY 11.50&lt;BR /&gt;;&lt;BR /&gt;DATA BBQ Ribs (OPTIONS);&lt;BR /&gt;MERGE Ribs-1 (OPTIONS) Shrimp-2 (OPTIONS);&lt;BR /&gt;BY Variable(s);&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 21:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627329#M185163</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-25T21:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627335#M185167</link>
      <description>&lt;P&gt;&lt;SPAN&gt;data shrimp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;input City :$20. State :$3. Shrimp :$3.;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cards;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Baltimore MD Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brooklyn NY No&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Buffalo NY Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Harlem NY No&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Newark NJ Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rochester NY Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stamford CT Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Syracuse NY Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Troy NY Yes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;data ribs;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;input City :$15. State :$2. Price;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cards;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Baltimore MD 10.95&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brooklyn NY 12.99&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Buffalo NY 11.50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Harlem NY 12.50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Newark NJ 11.50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rochester NY 10.95&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stamford CT 11.50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Syracuse NY 10.95&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Troy NY 11.50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DATA BBQ Ribs (OPTIONS);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MERGE Ribs-1 (OPTIONS) Shrimp-2 (OPTIONS);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BY Variable(s);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RUN;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 21:24:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627335#M185167</guid>
      <dc:creator>harveysarah0</dc:creator>
      <dc:date>2020-02-25T21:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627338#M185169</link>
      <description>&lt;P&gt;You have program pieces that are entirely illegal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(OPTIONS)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cannot be part of a DATA step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ribs-1&lt;/P&gt;
&lt;P&gt;Shrimp-2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are not the names of your data sets, nor would they be legal as data set names if you attempted to create them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Variable(s)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to actually name the variables, not imagine that SAS can figure out the right variable names.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would be along the right lines:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA BBQ_Ribs;
MERGE Ribs Shrimp;
BY City State;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 21:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627338#M185169</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-02-25T21:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data Sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627356#M185179</link>
      <description>&lt;P&gt;Here's a tutorial on merging data, it covers your use case.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/modules/match-merging-data-files-in-sas/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/modules/match-merging-data-files-in-sas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 22:37:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-Data-Sets/m-p/627356#M185179</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-02-25T22:37:09Z</dc:date>
    </item>
  </channel>
</rss>

