<?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 intck in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/intck/m-p/404415#M98306</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables, table aa have the acount number and acount open date, table bb have acount number and&lt;BR /&gt;launch_date. I am here trying to create a data set with acount numbers who have opened thiere accounts&lt;BR /&gt;7 days after the launch_date. &amp;nbsp;Am using weekday with intck fumction but not getting the desired output. please suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data aa;&lt;BR /&gt;input act open_date;&lt;BR /&gt;informat open_date date9.;&lt;BR /&gt;format open_date date9.;&lt;BR /&gt;datalines;&lt;BR /&gt;0101 17Apr1990&lt;BR /&gt;0202 18May1990&lt;BR /&gt;0303 19Jun1991&lt;BR /&gt;0404 20Jul1992&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data bb;&lt;BR /&gt;input act launch_Date;&lt;BR /&gt;informat Launch_date date9.;&lt;BR /&gt;format Launch_date date9.;&lt;BR /&gt;datalines;&lt;BR /&gt;0101 20Apr1990&lt;BR /&gt;0202 21May1990&lt;BR /&gt;0303 19Jan2002&lt;BR /&gt;0404 20Jan2003&lt;BR /&gt;0505 21Jan2004&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; RegardS,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2017 10:06:18 GMT</pubDate>
    <dc:creator>sanjay1</dc:creator>
    <dc:date>2017-10-16T10:06:18Z</dc:date>
    <item>
      <title>intck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck/m-p/404415#M98306</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables, table aa have the acount number and acount open date, table bb have acount number and&lt;BR /&gt;launch_date. I am here trying to create a data set with acount numbers who have opened thiere accounts&lt;BR /&gt;7 days after the launch_date. &amp;nbsp;Am using weekday with intck fumction but not getting the desired output. please suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data aa;&lt;BR /&gt;input act open_date;&lt;BR /&gt;informat open_date date9.;&lt;BR /&gt;format open_date date9.;&lt;BR /&gt;datalines;&lt;BR /&gt;0101 17Apr1990&lt;BR /&gt;0202 18May1990&lt;BR /&gt;0303 19Jun1991&lt;BR /&gt;0404 20Jul1992&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data bb;&lt;BR /&gt;input act launch_Date;&lt;BR /&gt;informat Launch_date date9.;&lt;BR /&gt;format Launch_date date9.;&lt;BR /&gt;datalines;&lt;BR /&gt;0101 20Apr1990&lt;BR /&gt;0202 21May1990&lt;BR /&gt;0303 19Jan2002&lt;BR /&gt;0404 20Jan2003&lt;BR /&gt;0505 21Jan2004&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; RegardS,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 10:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck/m-p/404415#M98306</guid>
      <dc:creator>sanjay1</dc:creator>
      <dc:date>2017-10-16T10:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: intck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck/m-p/404416#M98308</link>
      <description>&lt;P&gt;I assume you mean WITHIN 7 days of opening the account as none of your sample data fits EXACTLY 7 days after opening. Of course "under the hood" dates are just numbers so a simple merge does the trick unless there's another requirement...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	merge aa bb;
	by act;
	if launch_date &amp;lt; open_date+8 then output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Oct 2017 10:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck/m-p/404416#M98308</guid>
      <dc:creator>ChrisBrooks</dc:creator>
      <dc:date>2017-10-16T10:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: intck</title>
      <link>https://communities.sas.com/t5/SAS-Programming/intck/m-p/404417#M98309</link>
      <description>&lt;P&gt;"Not getting the desired output" - this does not tell us anything about the issue?&amp;nbsp; From your problem:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table WANT as
  select  A.ACT,
          A.OPEN_DATE,
          B.LAUCH_DATE
  from    TABLEA A
  left join TABLEB B
  on      A.ACT=B.ACT
  where   A.OPEN_DATE=B.LAUNCH_DATE+7;
quit;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Oct 2017 10:17:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/intck/m-p/404417#M98309</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-16T10:17:20Z</dc:date>
    </item>
  </channel>
</rss>

