<?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: Combine Tables Help in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213933#M16082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would make it easier for us to help you out if you provided some example data in the two data sets you want to combine, and then a brief example of the output you're looking to achieve.&amp;nbsp; Dummy data can be used, just so we understand the structure of the two data sets and the desired output you are wanting.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 14:56:35 GMT</pubDate>
    <dc:creator>dcruik</dc:creator>
    <dc:date>2015-06-25T14:56:35Z</dc:date>
    <item>
      <title>Combine Tables Help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213932#M16081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Sorry in advance if this is a silly question. But how do I combine 2 columns from two different SAS files? I tried query building, but query builder created a SAS file with two seperate columns and I want these two columns combine into one column instead. Am I using the wrong tool or is there another way to join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 14:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213932#M16081</guid>
      <dc:creator>Alex_Ji</dc:creator>
      <dc:date>2015-06-25T14:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Tables Help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213933#M16082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it would make it easier for us to help you out if you provided some example data in the two data sets you want to combine, and then a brief example of the output you're looking to achieve.&amp;nbsp; Dummy data can be used, just so we understand the structure of the two data sets and the desired output you are wanting.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 14:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213933#M16082</guid>
      <dc:creator>dcruik</dc:creator>
      <dc:date>2015-06-25T14:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Tables Help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213934#M16083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide some examples of the 2 input data sets and what you want the output to look like. There are several ways to interpret "combine 2 columns" and details will help. Also let us know, if there is possible confusion, if a variable that looks numeric is actually a character variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 14:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213934#M16083</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-06-25T14:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Tables Help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213935#M16084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using enterprise guide query builder, you need to define a calculated column, where you need to specify an expression how you wish to combine the column values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 15:14:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213935#M16084</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-06-25T15:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Tables Help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213936#M16085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, it is actually really simple. I have two SAS data files.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11000_Capture.PNG" style="max-width: 450px; max-height: 600px;" /&gt;&lt;/P&gt;&lt;P&gt;I want to combined then to one that looks like this.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11001_Capture1.PNG" style="width: 436px; height: 245px;" /&gt;&lt;/P&gt;&lt;P&gt;File 1 has a bunch of text, file 2 has a bunch of text. I want them in one column. However, I am currently getting them in two columns when running query builder with outer joint function.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture3.PNG" class="jiveImage" src="https://communities.sas.com/legacyfs/online/11002_Capture3.PNG" style="width: 158px; height: 87px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 18:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213936#M16085</guid>
      <dc:creator>Alex_Ji</dc:creator>
      <dc:date>2015-06-25T18:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Tables Help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213937#M16086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use proc append. just make sure that the column has the same name in each dataset.&lt;/P&gt;&lt;P&gt;proc append base=file1 data=file2; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 18:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213937#M16086</guid>
      <dc:creator>RRM</dc:creator>
      <dc:date>2015-06-25T18:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Tables Help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213938#M16087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try an &lt;STRONG&gt;insert into&lt;/STRONG&gt; statement:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;insert into table_1&lt;/P&gt;&lt;P&gt;(column1, column2, column3)&lt;/P&gt;&lt;P&gt;select column1, column2, column3&lt;/P&gt;&lt;P&gt;from table_2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;If there is a specific subset from table_2, you can use a where statement after the from statement such as&lt;/P&gt;&lt;P&gt;from table_2&lt;/P&gt;&lt;P&gt;where column2="something";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 19:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213938#M16087</guid>
      <dc:creator>jsasusr</dc:creator>
      <dc:date>2015-06-25T19:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Tables Help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213939#M16088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tasks&amp;gt;Data&amp;gt;Append Table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 19:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213939#M16088</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-06-25T19:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Combine Tables Help</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213940#M16089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So to combine two tables without matching the rows you can use the SET statement in SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set a b ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you have some ID variables that the two datasets are sorted on you can use a BY statement to insure that the generated table is also sorted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set a b ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by id ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 21:49:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Combine-Tables-Help/m-p/213940#M16089</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-25T21:49:37Z</dc:date>
    </item>
  </channel>
</rss>

