<?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: Date difference in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Date-difference/m-p/150184#M39594</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would replace the if statement by&lt;STRONG&gt; if ABS(date1 - date2) eq 200 then Do;&lt;/STRONG&gt; because we do not know what date is more recent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2014 19:41:32 GMT</pubDate>
    <dc:creator>CTorres</dc:creator>
    <dc:date>2014-10-30T19:41:32Z</dc:date>
    <item>
      <title>Date difference</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-difference/m-p/150181#M39591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can something like the following be done in SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if days(date1 - date2) = 200 then do....end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (i.e. if # days difference is 200 then perform a task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly for months or years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 18:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-difference/m-p/150181#M39591</guid>
      <dc:creator>AminB</dc:creator>
      <dc:date>2014-10-30T18:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-difference/m-p/150182#M39592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try intck to calculate number of days/months between two dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if intck('day',date1,date2) = 200 then do&amp;nbsp; /* for days */&lt;/P&gt;&lt;P&gt;if intck('month',date1,date2) = 200 then do&amp;nbsp; /* for months */&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 18:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-difference/m-p/150182#M39592</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2014-10-30T18:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-difference/m-p/150183#M39593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming Date1 and Date2 are SAS dates would the following not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If (Date1 - date2) eq&amp;nbsp; 200 then Do ;&lt;/P&gt;&lt;P&gt;end ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the months and years the Intck function woudl work as shown by &lt;A href="mailto:stat@sas"&gt;stat@sas&lt;/A&gt;. Of course, we have not yet talked about 'alignment' on months and years!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 18:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-difference/m-p/150183#M39593</guid>
      <dc:creator>LionelT</dc:creator>
      <dc:date>2014-10-30T18:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Date difference</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Date-difference/m-p/150184#M39594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would replace the if statement by&lt;STRONG&gt; if ABS(date1 - date2) eq 200 then Do;&lt;/STRONG&gt; because we do not know what date is more recent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 19:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Date-difference/m-p/150184#M39594</guid>
      <dc:creator>CTorres</dc:creator>
      <dc:date>2014-10-30T19:41:32Z</dc:date>
    </item>
  </channel>
</rss>

