<?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 Three Tables one variable needed from each in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Three-Tables-one-variable-needed-from-each/m-p/320557#M70629</link>
    <description>&lt;P&gt;One table was created to have all possibilities of Location_Number, Date, Hour, Quarter_Hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three tables with all four of these values and I want to pull the specefic revenue amount in each table that corresponds to the&amp;nbsp;&lt;SPAN&gt;Location_Number, Date, Hour, and Quarter_Hour.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Can someone give me some sample code&lt;/STRONG&gt; to get moving on joining up all Revenue from these three tables while keeping the revenue seperate from each table and revenue it pulls. (Example Pull Revenue A table when (Location_Number=Date=Hour=Quarter_Hour) then output name as Revenue A Table, repeat for Revenue B Table, Revenue C Table)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 16:55:42 GMT</pubDate>
    <dc:creator>Scottie_T</dc:creator>
    <dc:date>2016-12-21T16:55:42Z</dc:date>
    <item>
      <title>Three Tables one variable needed from each</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Three-Tables-one-variable-needed-from-each/m-p/320557#M70629</link>
      <description>&lt;P&gt;One table was created to have all possibilities of Location_Number, Date, Hour, Quarter_Hour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have three tables with all four of these values and I want to pull the specefic revenue amount in each table that corresponds to the&amp;nbsp;&lt;SPAN&gt;Location_Number, Date, Hour, and Quarter_Hour.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Can someone give me some sample code&lt;/STRONG&gt; to get moving on joining up all Revenue from these three tables while keeping the revenue seperate from each table and revenue it pulls. (Example Pull Revenue A table when (Location_Number=Date=Hour=Quarter_Hour) then output name as Revenue A Table, repeat for Revenue B Table, Revenue C Table)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 16:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Three-Tables-one-variable-needed-from-each/m-p/320557#M70629</guid>
      <dc:creator>Scottie_T</dc:creator>
      <dc:date>2016-12-21T16:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Three Tables one variable needed from each</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Three-Tables-one-variable-needed-from-each/m-p/320565#M70631</link>
      <description>&lt;P&gt;It is not clear enough what you want to get.&lt;/P&gt;
&lt;P&gt;As much as I understand you need somthing like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data RevenuA revenuB revenuC;&lt;/P&gt;
&lt;P&gt;merge tableA(in=inA &amp;nbsp;rename=(revenue=revA))&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tableB(in=inB &lt;SPAN&gt;&amp;nbsp;rename=(revenue=revB)&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tableC(in=inC &lt;SPAN&gt;&amp;nbsp;rename=(revenue=revC)&lt;/SPAN&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;by Location_number date hour&amp;nbsp;&lt;SPAN&gt;Quarter_Hour&lt;/SPAN&gt; ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if inA (... and conditions ...) then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;revenu = revA; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;output RevenuA;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if inB (... and conditions ...) then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;revenu = revB; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;output RevenuB;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if inC (... and conditions ...) then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;revenu = revC; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;output RevenuC;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 17:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Three-Tables-one-variable-needed-from-each/m-p/320565#M70631</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-12-21T17:40:53Z</dc:date>
    </item>
  </channel>
</rss>

