<?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 If condition in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/If-condition/m-p/142223#M37855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to find if &lt;STRONG&gt;date&lt;/STRONG&gt; variable is greater than &lt;STRONG&gt;surgery variable &lt;/STRONG&gt; by 35days&lt;/P&gt;&lt;P&gt;both are dates.&lt;/P&gt;&lt;P&gt;is this below code right??????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if date ge (Surgery - 60*60*24*35);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 17:25:48 GMT</pubDate>
    <dc:creator>robertrao</dc:creator>
    <dc:date>2013-11-13T17:25:48Z</dc:date>
    <item>
      <title>If condition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/If-condition/m-p/142223#M37855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to find if &lt;STRONG&gt;date&lt;/STRONG&gt; variable is greater than &lt;STRONG&gt;surgery variable &lt;/STRONG&gt; by 35days&lt;/P&gt;&lt;P&gt;both are dates.&lt;/P&gt;&lt;P&gt;is this below code right??????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if date ge (Surgery - 60*60*24*35);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 17:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/If-condition/m-p/142223#M37855</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-11-13T17:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: If condition</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/If-condition/m-p/142224#M37856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That would work if your values were datetime, not date. Date formats are stored as the number of days since a fixed date (01/01/1960) so you'd simply need to substract 35.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is typically best to get accustomed to the intnx function though for date distance. I'll let you look that up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 17:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/If-condition/m-p/142224#M37856</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-11-13T17:31:23Z</dc:date>
    </item>
  </channel>
</rss>

