<?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 how to find a date if it falls between a range of date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-a-date-if-it-falls-between-a-range-of-date/m-p/786886#M251292</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I am a new by to SAS and learning from youtube. I am stuck with one of the problem statement and seek your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find out the below in 2 datasets;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If V3 date falls between V3 and V5 of the sheet1 then NAR. If it falls on or after V5 of sheet1 then issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If V5 date falls between V5 and V7 of the sheet1 then NAR. If it falls on or after V7 of sheet1 then issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If any V is blank then should show a msg that this V is missing. (Like 1001 V7 missing so when we check V7 date, then msg should come V7 missing in sheet2).&lt;/P&gt;&lt;P&gt;I have attached the sample data&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 04:59:47 GMT</pubDate>
    <dc:creator>Snum</dc:creator>
    <dc:date>2021-12-21T04:59:47Z</dc:date>
    <item>
      <title>how to find a date if it falls between a range of date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-a-date-if-it-falls-between-a-range-of-date/m-p/786886#M251292</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I am a new by to SAS and learning from youtube. I am stuck with one of the problem statement and seek your support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to find out the below in 2 datasets;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If V3 date falls between V3 and V5 of the sheet1 then NAR. If it falls on or after V5 of sheet1 then issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If V5 date falls between V5 and V7 of the sheet1 then NAR. If it falls on or after V7 of sheet1 then issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If any V is blank then should show a msg that this V is missing. (Like 1001 V7 missing so when we check V7 date, then msg should come V7 missing in sheet2).&lt;/P&gt;&lt;P&gt;I have attached the sample data&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 04:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-a-date-if-it-falls-between-a-range-of-date/m-p/786886#M251292</guid>
      <dc:creator>Snum</dc:creator>
      <dc:date>2021-12-21T04:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to find a date if it falls between a range of date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-a-date-if-it-falls-between-a-range-of-date/m-p/786890#M251296</link>
      <description>&lt;P&gt;Many of us, including myself, won't open an binary files, especially not office-files, so please post data in usable form: a data step using datalines or proc sql with create table and insert.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 05:47:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-a-date-if-it-falls-between-a-range-of-date/m-p/786890#M251296</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-12-21T05:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to find a date if it falls between a range of date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-a-date-if-it-falls-between-a-range-of-date/m-p/786921#M251316</link>
      <description>&lt;P&gt;Please provide the data as SAS data step code (&lt;A href="https://blogs.sas.com/content/sastraining/2016/03/11/jedi-sas-tricks-data-to-data-step-macro/" target="_self"&gt;instructions&lt;/A&gt;), we can't write code unless we have the data in a SAS data set.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Question — you said&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;If V3 date falls between V3 and V5 of the sheet1 then NAR. If it falls on or after V5 of sheet1 then issue.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wouldn't V3 by definition be between V3 and V5? How can V3 be not between V3 and V5?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 11:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-a-date-if-it-falls-between-a-range-of-date/m-p/786921#M251316</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-12-21T11:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to find a date if it falls between a range of date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-a-date-if-it-falls-between-a-range-of-date/m-p/788462#M252105</link>
      <description>Hi Paige Miller;&lt;BR /&gt;Yes you are correct :). I have had asked my colleague to explain and help me understand the situation. It was my misunderstanding.</description>
      <pubDate>Wed, 05 Jan 2022 14:27:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-a-date-if-it-falls-between-a-range-of-date/m-p/788462#M252105</guid>
      <dc:creator>Snum</dc:creator>
      <dc:date>2022-01-05T14:27:51Z</dc:date>
    </item>
  </channel>
</rss>

