<?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: Following an account for 18 months in a different performance table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443044#M110817</link>
    <description>&lt;P&gt;Please provide some example data you have and the output you want. We never no how you data looks like unless you show us.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Mar 2018 21:01:52 GMT</pubDate>
    <dc:creator>SuryaKiran</dc:creator>
    <dc:date>2018-03-06T21:01:52Z</dc:date>
    <item>
      <title>Following an account for 18 months in a different performance table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443036#M110814</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; I have 300 applications that applied within a 12 month window.&amp;nbsp; Eg. Aug'2015 t Jul'2016 (call these APP_Dates). These are in TABLE A.&amp;nbsp; I also have TABLE B with a whole bunch of performance data for 3 years starting Sep'2015 all the way up to Jan'2018 (call these PERF_Dates).&amp;nbsp; I want to find the performance for each application for exactly 18 months from the&amp;nbsp;APP_Date + 1 .&amp;nbsp; So an application from Aug'2015 I would have their&amp;nbsp;performance info from Sep'2015 to Feb'2017.. and so on for each account.&amp;nbsp;&amp;nbsp; It is&amp;nbsp;possible that some applications do not have any performance data or some may only have a smaller limited amount (eg. less then 18 months).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I tried the below but that still gave me everyone.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; intck(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'month'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,a.CreationDate,b.Proc_Dt) &amp;lt;= &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;19&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Thanks.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 20:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443036#M110814</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2018-03-06T20:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Following an account for 18 months in a different performance table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443042#M110816</link>
      <description>&lt;P&gt;You should invert the two dates&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; intck(&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;'month'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, b.Proc_Dt, a.CreationDate) &amp;lt;= &lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;19&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 20:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443042#M110816</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-03-06T20:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Following an account for 18 months in a different performance table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443044#M110817</link>
      <description>&lt;P&gt;Please provide some example data you have and the output you want. We never no how you data looks like unless you show us.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 21:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443044#M110817</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-03-06T21:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Following an account for 18 months in a different performance table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443046#M110818</link>
      <description>&lt;P&gt;So, which of a.creationdate and b.Proc_dt is your APP_date? Your PERF_date? Discussing date in one term and the showing code using different variable names doesn't help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your all of you&amp;nbsp;b.Proc_dt is before a.creationdate then all of the intck values are negative and you would get the behavior you describe (assumes the data is joined on some other variables that make sense).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might have to post some example data in the form of data steps and the actual code you ran for a good diagnostic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Were there any interesting notes in the log?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 21:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443046#M110818</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-06T21:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Following an account for 18 months in a different performance table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443052#M110820</link>
      <description>&lt;P&gt;Thanks everyone for your help.&amp;nbsp;&amp;nbsp;&amp;nbsp; I used this and it works fine:&lt;/P&gt;
&lt;P&gt;where intnx ('month',app_date,1) &amp;lt;=Perf_date &amp;lt;=intnx('month',app_date,19)&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 21:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Following-an-account-for-18-months-in-a-different-performance/m-p/443052#M110820</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2018-03-06T21:15:10Z</dc:date>
    </item>
  </channel>
</rss>

