<?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: How to select range of values with decimals? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409892#M100177</link>
    <description>&lt;P&gt;Of course you didn't get an 850.5.&amp;nbsp; There is no literal 850.5 in your value list.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 15:51:51 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2017-11-02T15:51:51Z</dc:date>
    <item>
      <title>How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409882#M100175</link>
      <description>&lt;P&gt;I'm trying to select observations by using a range of values that contain decimals. It's important to use the exact numbers and not round.&lt;/P&gt;&lt;P&gt;This is what I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data want; set have;&lt;/P&gt;&lt;P&gt;if variable in&amp;nbsp;&lt;SPAN class="TextRun SCXW97821277"&gt;&lt;SPAN class="NormalTextRun SCXW97821277"&gt;(800.0:801.9,803.0:804.9,850.0:854.1,950.1:950.3,995.55,959.01)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCXW97821277"&gt;&amp;nbsp; then output;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="EOP SCXW97821277"&gt;When I did proc print for an observation that had a value of 850.5 for my variable, it didn't show up.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="EOP SCXW97821277"&gt;I also tried using "-" instead of ":" and same thing. Short of writing out every single value, is there any way to make sure SAS will include every value in between each of those ranges?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="EOP SCXW97821277"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="EOP SCXW97821277"&gt;Laura&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409882#M100175</guid>
      <dc:creator>newsasuser</dc:creator>
      <dc:date>2017-11-02T15:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409892#M100177</link>
      <description>&lt;P&gt;Of course you didn't get an 850.5.&amp;nbsp; There is no literal 850.5 in your value list.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409892#M100177</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-11-02T15:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409898#M100179</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/175326"&gt;@newsasuser&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The IN operator&amp;nbsp;is meant to be used in character comparisons, as you specify lists of discrete values. This is why you cannot specify numeric ranges. The easiest way to accomplish your goal is to use the &amp;gt;, &amp;lt;, &amp;lt;=, &amp;gt;= operators.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example,&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data want;
set have;
if variable &amp;gt;= 800.0 and variable &amp;lt;= 800.9 then output; run;&lt;/PRE&gt;
&lt;P&gt;and so on. Let me know if that helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 15:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409898#M100179</guid>
      <dc:creator>OliviaWright</dc:creator>
      <dc:date>2017-11-02T15:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409905#M100184</link>
      <description>&lt;P&gt;The START:END shortcut syntax is only for integers.&lt;/P&gt;
&lt;P&gt;Either type them out, or use a loop to generate a macro variable with the list.&lt;/P&gt;
&lt;P&gt;Using a data step DO loop would be easier since you can list all of the groups in one DO statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  length list $5000 ;
  do x=800.0 to 801.9 by 0.1
      ,803.0 to 804.9 by 0.1
      ,850.0 to 854.1 by 0.1
      ,950.1 to 950.3 by 0.1
      ,995.55
      ,959.01
  ;
    list=catx(' ',list,put(x,6.2));
  end;
  call symputx('list',list);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can use the macro variable in your later code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  if variable in (&amp;amp;list);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note there is no need to use commas to separate the list of values given the IN() operator. Space delimiters are much easier to use with SAS code since you can pass them as macro parameter values without having to use macro quoting.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409905#M100184</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-02T16:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409907#M100185</link>
      <description>&lt;P&gt;Did you notice the ERROR in the log?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the documentation:&lt;/P&gt;
&lt;H2 class="xis-title"&gt;The IN Operator in Numeric Comparisons&lt;/H2&gt;
&lt;DIV class="xis-topicContent" id="n0lnf8swokkq5in169wemyzarn84"&gt;
&lt;DIV class="xis-paragraph" id="p0s15zdehphngsn168qczl0ukbcs"&gt;You can use a shorthand notation to specify a range of &lt;FONT size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;sequential integers&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;to search.&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;I am afraid you are going to have to write something like:&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;if&amp;nbsp;&amp;nbsp; (800 le variable le 801.9) or (803 le variable le 804.9) or () or ().&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;OR another option is to create a custom format&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;
&lt;PRE&gt;proc format library=work;
value mykeep
800  - 801.9 ='Keep'
803.0 - 804.9 ='Keep'
850.0 - 854.1 ='Keep'
950.1 - 950.3 ='Keep'
995.55 ='Keep'
959.01='Keep'
other='Do not keep'
;
run;&lt;/PRE&gt;
and use:&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;If put(variable,Mykeep.)='Keep' then output;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;The format approach does allow using the options that will keep the endpoints or not and could also allow use of High and LOW ranges values.&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409907#M100185</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-02T16:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409919#M100191</link>
      <description>&lt;P&gt;If your variable never extends beyond 2 decimal places, you could fudge the result easily enough:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;if 100 * variable in&amp;nbsp;&lt;SPAN class="TextRun SCXW97821277"&gt;&lt;SPAN class="NormalTextRun SCXW97821277"&gt;(80000:80190, 80300:80490, 85000:85410, 95010:95030, 99555, 95901)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="EOP SCXW97821277"&gt;&amp;nbsp; then output;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="EOP SCXW97821277"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:40:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409919#M100191</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-11-02T16:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409947#M100200</link>
      <description>&lt;P&gt;As per &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;,s nifty suggestion.&amp;nbsp;&amp;nbsp;&amp;nbsp;if the decimals do go beyond two digits, you can use the FLOOR and CEIL functions with his technique:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="SAS Monospace" size="4"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="4"&gt; have;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="4"&gt;&amp;nbsp; do&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="4"&gt; variable=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;801.00&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;801.1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;801.15&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;801.155&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;801.90006&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="4"&gt;&amp;nbsp; end&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="SAS Monospace" size="4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="SAS Monospace" size="4"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="4"&gt; want;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="4"&gt;&amp;nbsp; set&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="4"&gt; have;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="4"&gt;&amp;nbsp; if&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="4"&gt; floor&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;(&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;&lt;STRONG&gt;100&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;&lt;STRONG&gt; * variable) in&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="4"&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;&lt;STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;80000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;:&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;80190&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;, &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;80300&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;:&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;80490&lt;FONT face="SAS Monospace" size="4"&gt;, &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;85000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;:&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;85410&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;&lt;FONT face="SAS Monospace" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;95010&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;:&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;95030&lt;FONT face="SAS Monospace" size="4"&gt;, &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;99555&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;95901&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;&lt;FONT face="SAS Monospace" size="4"&gt;&lt;FONT face="SAS Monospace" size="4"&gt;&amp;nbsp; and&lt;FONT face="SAS Monospace" size="4"&gt;&amp;nbsp;ceil(100 * variable) in&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="SAS Monospace" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;80000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;:&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;80190&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;, &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;80300&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;:&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;80490&lt;FONT face="SAS Monospace" size="4"&gt;, &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;85000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;:&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;85410&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;&lt;FONT face="SAS Monospace" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;95010&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;:&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;95030&lt;FONT face="SAS Monospace" size="4"&gt;, &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;99555&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="SAS Monospace" size="4"&gt;95901&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="SAS Monospace" size="4"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="SAS Monospace" size="4"&gt;&amp;nbsp;&amp;nbsp;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="SAS Monospace" size="4"&gt;output&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="SAS Monospace" size="4"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="4"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 17:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409947#M100200</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2017-11-02T17:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409951#M100201</link>
      <description>This worked perfectly, thanks!</description>
      <pubDate>Thu, 02 Nov 2017 17:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/409951#M100201</guid>
      <dc:creator>newsasuser</dc:creator>
      <dc:date>2017-11-02T17:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/411632#M100627</link>
      <description>&lt;P&gt;After thinking it worked initially, I've realized that it isn't capturing all the ranges. It's only&amp;nbsp;capturing 850-853.19.&lt;/P&gt;&lt;P&gt;This is the code I used (modified slightly because include hundredth decimal place):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;length list $5000 ;&lt;BR /&gt;do x=800.0 to 801.9 by 0.01&lt;BR /&gt;,803.0 to 804.9 by 0.01&lt;BR /&gt;,850.0 to 854.1 by 0.01&lt;BR /&gt;,950.1 to 950.3 by 0.01&lt;BR /&gt;,959.01&lt;BR /&gt;,995.55&lt;BR /&gt;;&lt;BR /&gt;list=catx(' ',list,put(x,6.3));&lt;BR /&gt;end;&lt;BR /&gt;call symput('list',list);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 18:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/411632#M100627</guid>
      <dc:creator>newsasuser</dc:creator>
      <dc:date>2017-11-08T18:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/411633#M100628</link>
      <description>&lt;P&gt;5 thousand characters is not long enough for such a large list.&lt;/P&gt;
&lt;P&gt;Change the length of the character variable, the maximum length is 32767.&lt;/P&gt;
&lt;P&gt;Also why are you use 6.3 format instead of 6.2?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 18:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/411633#M100628</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-08T18:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to select range of values with decimals?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/411645#M100631</link>
      <description>If your criteria is not long you can&lt;BR /&gt;use case statement with proc sql :&lt;BR /&gt;&lt;BR /&gt;Case when variable=800 then "1"&lt;BR /&gt;when variable between 801.9 and 803 then "1"&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;Else "0"&lt;BR /&gt;End</description>
      <pubDate>Wed, 08 Nov 2017 19:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-select-range-of-values-with-decimals/m-p/411645#M100631</guid>
      <dc:creator>Yavuz</dc:creator>
      <dc:date>2017-11-08T19:23:05Z</dc:date>
    </item>
  </channel>
</rss>

