<?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: setting period condition between a and b in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/setting-period-condition-between-a-and-b/m-p/532643#M145967</link>
    <description>&lt;P&gt;In a SAS data step&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if date2&amp;gt;date1 and not missing(date1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 04 Feb 2019 17:39:37 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-02-04T17:39:37Z</dc:date>
    <item>
      <title>setting period condition between a and b</title>
      <link>https://communities.sas.com/t5/SAS-Programming/setting-period-condition-between-a-and-b/m-p/532642#M145966</link>
      <description />
      <pubDate>Thu, 21 Feb 2019 09:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/setting-period-condition-between-a-and-b/m-p/532642#M145966</guid>
      <dc:creator>dr_101</dc:creator>
      <dc:date>2019-02-21T09:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: setting period condition between a and b</title>
      <link>https://communities.sas.com/t5/SAS-Programming/setting-period-condition-between-a-and-b/m-p/532643#M145967</link>
      <description>&lt;P&gt;In a SAS data step&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if date2&amp;gt;date1 and not missing(date1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:39:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/setting-period-condition-between-a-and-b/m-p/532643#M145967</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-04T17:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: setting period condition between a and b</title>
      <link>https://communities.sas.com/t5/SAS-Programming/setting-period-condition-between-a-and-b/m-p/532645#M145969</link>
      <description />
      <pubDate>Thu, 21 Feb 2019 10:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/setting-period-condition-between-a-and-b/m-p/532645#M145969</guid>
      <dc:creator>dr_101</dc:creator>
      <dc:date>2019-02-21T10:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: setting period condition between a and b</title>
      <link>https://communities.sas.com/t5/SAS-Programming/setting-period-condition-between-a-and-b/m-p/532651#M145971</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/170086"&gt;@dr_101&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;thank you very much for replying.&amp;nbsp; will it set the distance between the two events at least one year? some ids have as little as 2 months gap between event 2 and event 1. I want to select only those with atleast 1 year gap.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your original post did not specify you wanted 1 year intervals.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A 1 year gap can be found via:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token keyword"&gt;if&lt;/SPAN&gt; date2&lt;SPAN class="token operator"&gt;&amp;gt;(&lt;/SPAN&gt;date1+365) and &lt;SPAN class="token operator"&gt;not&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;missing&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;date1&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Might need an adjustment if you really are concerned about leap years.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/setting-period-condition-between-a-and-b/m-p/532651#M145971</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-02-04T17:55:29Z</dc:date>
    </item>
  </channel>
</rss>

