<?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: Where Date in table A is within 35 days of date in table B in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Date-in-table-A-is-within-35-days-of-date-in-table-B/m-p/464122#M29954</link>
    <description>&lt;P&gt;You didn't provide enough info to show you how to write the code, but take a look at the last post in the thread:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Checking-if-a-transaction-date-falls-between-a-begin-date-and/td-p/204415" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/Checking-if-a-transaction-date-falls-between-a-begin-date-and/td-p/204415&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 May 2018 16:59:38 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2018-05-22T16:59:38Z</dc:date>
    <item>
      <title>Where Date in table A is within 35 days of date in table B</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Date-in-table-A-is-within-35-days-of-date-in-table-B/m-p/464118#M29952</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm joining an email activity table (table a) with a email history table (table b). I'm using an inner join to give me all data from table a where the activity_date in that table is within 35 days of the campaign_date (attribution reasons). I'm not sure how the syntax for that works in SAS EG. Can someone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select * 
	from email_campaign_activity a
	inner join
	email_campaign_history b 
	on a.email_campaign_id = b.email_campaign_id
	where ???&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 May 2018 16:28:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Date-in-table-A-is-within-35-days-of-date-in-table-B/m-p/464118#M29952</guid>
      <dc:creator>Dogo23</dc:creator>
      <dc:date>2018-05-22T16:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where Date in table A is within 35 days of date in table B</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Date-in-table-A-is-within-35-days-of-date-in-table-B/m-p/464121#M29953</link>
      <description>&lt;P&gt;Please meddle around this and see if this works&lt;/P&gt;&lt;P&gt;The addition is&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;intck('days',activity_date, campaign_date)&amp;lt;=35;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select * 
	from email_campaign_activity a
	inner join
	email_campaign_history b 
	on a.email_campaign_id = b.email_campaign_id and intck('days',activity_date, campaign_date)&amp;lt;=35;
	quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 16:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Date-in-table-A-is-within-35-days-of-date-in-table-B/m-p/464121#M29953</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-05-22T16:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Where Date in table A is within 35 days of date in table B</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Date-in-table-A-is-within-35-days-of-date-in-table-B/m-p/464122#M29954</link>
      <description>&lt;P&gt;You didn't provide enough info to show you how to write the code, but take a look at the last post in the thread:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Checking-if-a-transaction-date-falls-between-a-begin-date-and/td-p/204415" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/Checking-if-a-transaction-date-falls-between-a-begin-date-and/td-p/204415&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 May 2018 16:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Date-in-table-A-is-within-35-days-of-date-in-table-B/m-p/464122#M29954</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-05-22T16:59:38Z</dc:date>
    </item>
  </channel>
</rss>

