<?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: Defining a range w/ the IN statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Defining-a-range-w-the-IN-statement/m-p/821049#M324134</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; is correct, you need the colon : to indicate a range. The SAS log notes reveal the issue with trying - for the range indicator, as shown in the simplified example below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1656547568368.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72845iCCE13E02C211386D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1656547568368.png" alt="Cynthia_sas_0-1656547568368.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2022 00:07:23 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2022-06-30T00:07:23Z</dc:date>
    <item>
      <title>Defining a range w/ the IN statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Defining-a-range-w-the-IN-statement/m-p/821043#M324130</link>
      <description>&lt;P&gt;Can you define a range using the IN statement? Documentation says "yes", but my syntax says "no".&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  where RXDDCI1A in (40,358);
  where same and RXDDCI1B in (41-56,303,340,342,430,433,482,483,19);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above syntax selects 1 observation where&amp;nbsp;RXDDCI1B=41 and then picks back up when&amp;nbsp;RXDDCI1B=303. It works as desired when I remove the range (i.e., 41, 42, 43, 44, etc.).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 23:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Defining-a-range-w-the-IN-statement/m-p/821043#M324130</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2022-06-29T23:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a range w/ the IN statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Defining-a-range-w-the-IN-statement/m-p/821045#M324132</link>
      <description>&lt;P&gt;Documentation says that the &lt;STRONG&gt;integer sequence&lt;/STRONG&gt; is indicated by a full colon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt; where same and RXDDCI1B in (41:56,303,340,342,430,433,482,483,19);&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I say sequence because that is what that would be 41, 42 etc. A range would be anything between 41 and 56, such as 41.345678 but IN really want to use a finite list of values.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 23:38:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Defining-a-range-w-the-IN-statement/m-p/821045#M324132</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-29T23:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Defining a range w/ the IN statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Defining-a-range-w-the-IN-statement/m-p/821049#M324134</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt; is correct, you need the colon : to indicate a range. The SAS log notes reveal the issue with trying - for the range indicator, as shown in the simplified example below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1656547568368.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72845iCCE13E02C211386D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1656547568368.png" alt="Cynthia_sas_0-1656547568368.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2022 00:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Defining-a-range-w-the-IN-statement/m-p/821049#M324134</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-06-30T00:07:23Z</dc:date>
    </item>
  </channel>
</rss>

