<?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: Append Variables to the side of table not bottom in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Append-Variables-to-the-side-of-table-not-bottom/m-p/602438#M174438</link>
    <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/195960"&gt;@KC_16&lt;/a&gt;&amp;nbsp;A mention of horizontal generally means a JOIN/MERGE. Therefore, you will have to determine whether you want to do a match-merge or an equivalent JOIN using Proc SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code gives me the impression you are likely looking for a ONE to ONE merge, i.e&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data &lt;SPAN&gt;cancelled_Combined&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;merge&amp;nbsp;&lt;SPAN&gt;cancelled_this_month(rename=(the variables))&amp;nbsp;cancelled_previous_month;(rename=(the variables));/*you can write this yourself*/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Nov 2019 15:38:56 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-11-07T15:38:56Z</dc:date>
    <item>
      <title>Append Variables to the side of table not bottom</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-Variables-to-the-side-of-table-not-bottom/m-p/602430#M174434</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a PROC SQL statement which appends 2 tables together, however, I need all the variables captured to show horizontally, any idea how to do this please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example (as you can see, I have all 8 variables listed from Current and Previous Tables)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Curr&lt;/STRONG&gt;_email&amp;nbsp;&lt;STRONG&gt;curr&lt;/STRONG&gt;_first_name&amp;nbsp;&lt;STRONG&gt;curr&lt;/STRONG&gt;_user&amp;nbsp; &lt;STRONG&gt;curr&lt;/STRONG&gt;_network&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Prev&lt;/STRONG&gt;_email&amp;nbsp;&lt;STRONG&gt;Prev&lt;/STRONG&gt;_first_name&amp;nbsp;&lt;STRONG&gt;Prev&lt;/STRONG&gt;_user&amp;nbsp;Prev_network&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;/STRONG&gt;&lt;BR /&gt;create table work.cancelled_Combined AS&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;select&lt;/STRONG&gt; &lt;BR /&gt;E_mail AS Curr_email,&lt;BR /&gt;First_Name as curr_first_name,&lt;BR /&gt;User_ID as curr_user,&lt;BR /&gt;Network as curr_network&lt;BR /&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; work.cancelled_this_month&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;UNION ALL&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;select&lt;/STRONG&gt; &lt;BR /&gt;E_mail AS Prev_email,&lt;BR /&gt;First_Name as Prev_first_name,&lt;BR /&gt;User_ID as Prev_user,&lt;BR /&gt;Network as Prev_network&lt;BR /&gt;&lt;STRONG&gt;from&lt;/STRONG&gt; work.cancelled_previous_month;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 15:28:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-Variables-to-the-side-of-table-not-bottom/m-p/602430#M174434</guid>
      <dc:creator>KC_16</dc:creator>
      <dc:date>2019-11-07T15:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Append Variables to the side of table not bottom</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-Variables-to-the-side-of-table-not-bottom/m-p/602432#M174435</link>
      <description>&lt;P&gt;Are you looking for PROC TRANSPOSE?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings09/060-2009.pdf" target="_blank" rel="noopener"&gt;https://support.sas.com/resources/papers/proceedings09/060-2009.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 15:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-Variables-to-the-side-of-table-not-bottom/m-p/602432#M174435</guid>
      <dc:creator>Krueger</dc:creator>
      <dc:date>2019-11-07T15:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Append Variables to the side of table not bottom</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Append-Variables-to-the-side-of-table-not-bottom/m-p/602438#M174438</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/195960"&gt;@KC_16&lt;/a&gt;&amp;nbsp;A mention of horizontal generally means a JOIN/MERGE. Therefore, you will have to determine whether you want to do a match-merge or an equivalent JOIN using Proc SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code gives me the impression you are likely looking for a ONE to ONE merge, i.e&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data &lt;SPAN&gt;cancelled_Combined&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;merge&amp;nbsp;&lt;SPAN&gt;cancelled_this_month(rename=(the variables))&amp;nbsp;cancelled_previous_month;(rename=(the variables));/*you can write this yourself*/&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 15:38:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Append-Variables-to-the-side-of-table-not-bottom/m-p/602438#M174438</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-11-07T15:38:56Z</dc:date>
    </item>
  </channel>
</rss>

