<?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 two large datasets with SAME variable names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279925#M56488</link>
    <description>&lt;P&gt;4000 variables in multiple datasets, that really does not sound like an efficient or easy way to be working. &amp;nbsp;Personally I wouldn't work with any dataset having more than 30 odd variables, its just unworkable. &amp;nbsp;Consider a restructure.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2016 08:25:07 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-06-24T08:25:07Z</dc:date>
    <item>
      <title>Merging two large datasets with SAME variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279863#M56453</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am merging two rather large datasets each of which contain 4,000 variables and they both have the same variable names.&lt;/P&gt;&lt;P&gt;Given the large number of variables, I am wondering if there a SAS procedure that would allow me to rename all of the variables in a single dataset at once? Perhaps by adding a simple suffix or prefix?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Googled around and found some PROC SQL options however, I am simply not familiar&amp;nbsp; with SQL so the code was not very clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS version 9.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or references would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 22:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279863#M56453</guid>
      <dc:creator>2Whitty</dc:creator>
      <dc:date>2016-06-23T22:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two large datasets with SAME variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279866#M56456</link>
      <description>&lt;P&gt;If they have the same variable names are you sure you want a merge and not an append?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although it doesn't matter for this question you a SAS version is along the lines of 9.3 or 9.4 not just 9.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2016 22:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279866#M56456</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-23T22:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two large datasets with SAME variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279870#M56460</link>
      <description>OH!!! Yes... well I think I want to Append.&lt;BR /&gt;One dataset includes the children and the other include the mothers they&lt;BR /&gt;are to be merged(?) using a family ID.&lt;BR /&gt;Both groups completed the same questionnaire (hence the same variable&lt;BR /&gt;names) however now I am tasked with bringing them both together.&lt;BR /&gt;Appending sounds like a reasonable direction. I will Google that&lt;BR /&gt;procedure, right now!&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 23 Jun 2016 23:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279870#M56460</guid>
      <dc:creator>2Whitty</dc:creator>
      <dc:date>2016-06-23T23:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two large datasets with SAME variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279908#M56484</link>
      <description>&lt;P&gt;Well, that's quite simple, then.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data family;
set
  mothers
  children
;
run;

proc sort data=family;
by family_id;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Jun 2016 05:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279908#M56484</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-24T05:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two large datasets with SAME variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279925#M56488</link>
      <description>&lt;P&gt;4000 variables in multiple datasets, that really does not sound like an efficient or easy way to be working. &amp;nbsp;Personally I wouldn't work with any dataset having more than 30 odd variables, its just unworkable. &amp;nbsp;Consider a restructure.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2016 08:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/279925#M56488</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-24T08:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two large datasets with SAME variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/500082#M133119</link>
      <description>&lt;P&gt;What does it mean restructure?&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 08:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/500082#M133119</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-09-29T08:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: Merging two large datasets with SAME variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/500086#M133120</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;What does it mean restructure?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Transpose.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Sep 2018 09:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Merging-two-large-datasets-with-SAME-variable-names/m-p/500086#M133120</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-29T09:20:21Z</dc:date>
    </item>
  </channel>
</rss>

