<?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 SAS Tip: Use the BETWEEN-AND Operator to Search an Inclusive Range of Values in SAS Tips from the Community</title>
    <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Use-the-BETWEEN-AND-Operator-to-Search-an-Inclusive/m-p/475229#M172</link>
    <description>&lt;P&gt;&lt;SPAN&gt;The BETWEEN-AND operator can be used inside of a where&amp;nbsp;&lt;/SPAN&gt;statement&lt;SPAN&gt;&amp;nbsp;to determine if the value of a variable is contained within an inclusive range:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.retail;
    where year between 1980 and 1984;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Notice that the boundaries that you give are always included in the range, so in this case the data from 1980 and 1984 is printed, along with data from 1981-1983.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;This tip was originally posted by&amp;nbsp;&lt;SPAN&gt;Mary Rosenbloom on sasCommunity.org.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jul 2018 20:07:18 GMT</pubDate>
    <dc:creator>SAS_Tipster</dc:creator>
    <dc:date>2018-07-06T20:07:18Z</dc:date>
    <item>
      <title>SAS Tip: Use the BETWEEN-AND Operator to Search an Inclusive Range of Values</title>
      <link>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Use-the-BETWEEN-AND-Operator-to-Search-an-Inclusive/m-p/475229#M172</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The BETWEEN-AND operator can be used inside of a where&amp;nbsp;&lt;/SPAN&gt;statement&lt;SPAN&gt;&amp;nbsp;to determine if the value of a variable is contained within an inclusive range:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.retail;
    where year between 1980 and 1984;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Notice that the boundaries that you give are always included in the range, so in this case the data from 1980 and 1984 is printed, along with data from 1981-1983.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;This tip was originally posted by&amp;nbsp;&lt;SPAN&gt;Mary Rosenbloom on sasCommunity.org.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 20:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Tips-from-the-Community/SAS-Tip-Use-the-BETWEEN-AND-Operator-to-Search-an-Inclusive/m-p/475229#M172</guid>
      <dc:creator>SAS_Tipster</dc:creator>
      <dc:date>2018-07-06T20:07:18Z</dc:date>
    </item>
  </channel>
</rss>

