<?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: How to add additional tables   to where statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248172#M56382</link>
    <description>Hi Linus&lt;BR /&gt;Your right it's not a macro I notice the mend an thought it was one&lt;BR /&gt;Your also right it's not a where statement my question us can we add additional something like this&lt;BR /&gt;C.site,c.date,c.%r (site,3),c.%r (mintime,3),c.%r (maxtime,3),c.%r (durtime,3),&lt;BR /&gt;&lt;BR /&gt;D.site,d.date,d.%r (site,4),d.%r (mintime,4),d.%r (maxtime,4),d.%r (durtime,4)&lt;BR /&gt;&lt;BR /&gt;An refer the C and D in the GT LT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The proc table works when it involves two variables but it applies 2 more it doesn't pick them up...what the proc table does is it take the 2 variables an determine if there mintime and maxtime overlaps between the other mintime and maxtime group site ..thanks again</description>
    <pubDate>Fri, 05 Feb 2016 06:50:48 GMT</pubDate>
    <dc:creator>Beto16</dc:creator>
    <dc:date>2016-02-05T06:50:48Z</dc:date>
    <item>
      <title>How to add additional tables   to where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248159#M56374</link>
      <description>Hi I have a macro that looks like this&lt;BR /&gt;&lt;BR /&gt;From want as a inner join want as b on a.site =b.site&lt;BR /&gt;And (a.maxtime1 GT b.mintime2&lt;BR /&gt;And&lt;BR /&gt;A.maxtime1 LT b.maxtime2&lt;BR /&gt;)&lt;BR /&gt;Or (a.maxtime1 EQ B.maxtime2&lt;BR /&gt;and&lt;BR /&gt;Input (substr (a.site11,3,4),4.) LT Input (substr (b.site11,3,4),4.)&lt;BR /&gt;&lt;BR /&gt;Quit;&lt;BR /&gt;&lt;BR /&gt;What I want to do is add C and D options to it&lt;BR /&gt;If you need additional info let me know&lt;BR /&gt;&lt;BR /&gt;TIA&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Feb 2016 04:44:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248159#M56374</guid>
      <dc:creator>Beto16</dc:creator>
      <dc:date>2016-02-05T04:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional tables   to where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248160#M56375</link>
      <description>&lt;P&gt;I don't understand your question. Please clarify, with as much details as possible.&lt;/P&gt;
&lt;P&gt;Code/Log are appreciated, especially if you're getting errors.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 04:54:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248160#M56375</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-05T04:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional tables   to where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248167#M56380</link>
      <description>The macro looks like this&lt;BR /&gt;Proc r (x,n);x. As &amp;amp;x.&amp;amp;n. %mend;&lt;BR /&gt;A.site,a.date,a.%r (site,1),a.%r (mintime,1),a.%r (maxtime,1),a.%r (durtime,1),&lt;BR /&gt;B.site,b.date,b.%r (site,2),b.%r (mintime,2), b.%r (maxtime,2),b.%r (durtime,2)&lt;BR /&gt;&lt;BR /&gt;What I want to do is add this here&lt;BR /&gt;&lt;BR /&gt;C.site,c.date,c.%r (site,3),c.%r (mintime,3),c.%r (maxtime,3),c.%r (durtime,3),&lt;BR /&gt;&lt;BR /&gt;D.site,d.date,d.%r (site,4),d.%r (mintime,4),d.%r (maxtime,4),d.%r (durtime,4&lt;BR /&gt;&lt;BR /&gt;From want as a inner join want as b on a.site =b.site&lt;BR /&gt;And (a.maxtime1 GT b.mintime2&lt;BR /&gt;And&lt;BR /&gt;A.maxtime1 LT b.maxtime2&lt;BR /&gt;)&lt;BR /&gt;Or (a.maxtime1 EQ B.maxtime2&lt;BR /&gt;and&lt;BR /&gt;Input (substr (a.site11,3,4),4.) LT Input (substr (b.site11,3,4),4.)&lt;BR /&gt;&lt;BR /&gt;Quit;&lt;BR /&gt;&lt;BR /&gt;I don't know how to add C and D. To make it part to section greater than LT than ... thank you</description>
      <pubDate>Fri, 05 Feb 2016 06:13:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248167#M56380</guid>
      <dc:creator>Beto16</dc:creator>
      <dc:date>2016-02-05T06:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional tables   to where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248168#M56381</link>
      <description>I can't see any macro components in your code. Is that a part of your question. &lt;BR /&gt;&lt;BR /&gt;Is the question that you wish to use where as a join criteria. You could, and I suggest that you use one join syntax in your query.  Mixing (between where and on) makes it hard to read and may potentially bring undesired results.</description>
      <pubDate>Fri, 05 Feb 2016 06:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248168#M56381</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-05T06:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional tables   to where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248172#M56382</link>
      <description>Hi Linus&lt;BR /&gt;Your right it's not a macro I notice the mend an thought it was one&lt;BR /&gt;Your also right it's not a where statement my question us can we add additional something like this&lt;BR /&gt;C.site,c.date,c.%r (site,3),c.%r (mintime,3),c.%r (maxtime,3),c.%r (durtime,3),&lt;BR /&gt;&lt;BR /&gt;D.site,d.date,d.%r (site,4),d.%r (mintime,4),d.%r (maxtime,4),d.%r (durtime,4)&lt;BR /&gt;&lt;BR /&gt;An refer the C and D in the GT LT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The proc table works when it involves two variables but it applies 2 more it doesn't pick them up...what the proc table does is it take the 2 variables an determine if there mintime and maxtime overlaps between the other mintime and maxtime group site ..thanks again</description>
      <pubDate>Fri, 05 Feb 2016 06:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248172#M56382</guid>
      <dc:creator>Beto16</dc:creator>
      <dc:date>2016-02-05T06:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional tables   to where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248173#M56383</link>
      <description>I'm not aware of proc table.&lt;BR /&gt;First get a code working without macro. &lt;BR /&gt;Then troubleshoot your macro logic by using mprint mlogic symbolgen and %put.&lt;BR /&gt;If still can't solve it return with full code and log.</description>
      <pubDate>Fri, 05 Feb 2016 07:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248173#M56383</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-02-05T07:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add additional tables   to where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248176#M56384</link>
      <description>The proc table I was referring is this&lt;BR /&gt;&lt;BR /&gt;Proc r (x,n);x. As &amp;amp;x.&amp;amp;n. %mend;&lt;BR /&gt;A.site,a.date,a.%r (site,1),a.%r (mintime,1),a.%r (maxtime,1),a.%r (durtime,1),&lt;BR /&gt;B.site,b.date,b.%r (site,2),b.%r (mintime,2), b.%r (maxtime,2),b.%r (durtime,2)</description>
      <pubDate>Fri, 05 Feb 2016 07:10:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-add-additional-tables-to-where-statement/m-p/248176#M56384</guid>
      <dc:creator>Beto16</dc:creator>
      <dc:date>2016-02-05T07:10:57Z</dc:date>
    </item>
  </channel>
</rss>

