<?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 use proc sql to merge multiple dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/use-proc-sql-to-merge-multiple-dataset/m-p/282142#M57306</link>
    <description>&lt;P&gt;I need to merge 7 datasets, monday, tuesday, wed, thur, friday, sat, and sun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use data set step is easy but I want to create a variable that I can identify whether those are from the dataset monday, or from sat, or from other dataset/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;therefore, I am thinking to use "coalesce"&lt;/P&gt;&lt;P&gt;but I usually only merge two datasets, and never tried to merge seven together once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the requriment is,&lt;/P&gt;&lt;P&gt;1) merge 7 at one time&lt;/P&gt;&lt;P&gt;2) create an index to identify where it is from, so in case there are ids same from monday and tue, I can still identify by looking at the index id.&lt;/P&gt;&lt;P&gt;any advice?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2016 13:59:31 GMT</pubDate>
    <dc:creator>Bal23</dc:creator>
    <dc:date>2016-07-05T13:59:31Z</dc:date>
    <item>
      <title>use proc sql to merge multiple dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/use-proc-sql-to-merge-multiple-dataset/m-p/282142#M57306</link>
      <description>&lt;P&gt;I need to merge 7 datasets, monday, tuesday, wed, thur, friday, sat, and sun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use data set step is easy but I want to create a variable that I can identify whether those are from the dataset monday, or from sat, or from other dataset/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;therefore, I am thinking to use "coalesce"&lt;/P&gt;&lt;P&gt;but I usually only merge two datasets, and never tried to merge seven together once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the requriment is,&lt;/P&gt;&lt;P&gt;1) merge 7 at one time&lt;/P&gt;&lt;P&gt;2) create an index to identify where it is from, so in case there are ids same from monday and tue, I can still identify by looking at the index id.&lt;/P&gt;&lt;P&gt;any advice?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 13:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/use-proc-sql-to-merge-multiple-dataset/m-p/282142#M57306</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-07-05T13:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: use proc sql to merge multiple dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/use-proc-sql-to-merge-multiple-dataset/m-p/282146#M57308</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is also a &lt;STRONG&gt;set option - &lt;/STRONG&gt;&lt;STRONG&gt;INDSNAME&lt;/STRONG&gt; which may help&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set sashelp.class sashelp.cars INDSNAME=bse;

contributing_tbl=bse;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/use-proc-sql-to-merge-multiple-dataset/m-p/282146#M57308</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-07-05T14:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: use proc sql to merge multiple dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/use-proc-sql-to-merge-multiple-dataset/m-p/282150#M57310</link>
      <description>&lt;P&gt;Here's a recent question that has a viable approach:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Passing-a-SQL-Query-into-a-Macro/m-p/281086#M56930" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Passing-a-SQL-Query-into-a-Macro/m-p/281086#M56930&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's assuming that MERGE means a SAS MERGE and not some other combination.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/use-proc-sql-to-merge-multiple-dataset/m-p/282150#M57310</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-07-05T14:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: use proc sql to merge multiple dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/use-proc-sql-to-merge-multiple-dataset/m-p/282160#M57312</link>
      <description>&lt;P&gt;Thanks. Can you suggest an option with sql, since they are very large datasets?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/use-proc-sql-to-merge-multiple-dataset/m-p/282160#M57312</guid>
      <dc:creator>Bal23</dc:creator>
      <dc:date>2016-07-05T14:43:45Z</dc:date>
    </item>
  </channel>
</rss>

