<?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 does not give results for overlapping range. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-does-not-give-results-for-overlapping-range/m-p/941771#M42290</link>
    <description>&lt;P&gt;data new dataset;&lt;BR /&gt;set Weight ;&lt;BR /&gt;else if Weight &amp;lt; 1500 then BirthWeight = "2.2 Very low &amp;lt;1500";&lt;BR /&gt;else if Weight &amp;lt; 2500 then BirthWeight = "2.1 Low birth &amp;lt;2500";&lt;BR /&gt;else if Weight &amp;gt;= 2500 and BWGT &amp;lt;= 4000 then BirthWeight = "2.3 2500-4000";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code, but I have a small problem with the output.&lt;/P&gt;&lt;P&gt;I want to find values 2.2 &amp;lt;1,500 and 2.1 &amp;lt;2,500. However, it only provides outputs for values &amp;lt;1,500 and for values that are (&amp;lt;2,500 and &amp;gt;1,500). SAS does not give me results when the values overlap.&amp;nbsp;Any help would be greatly appreciated.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;SPAN class=""&gt;4o&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 29 Aug 2024 16:22:24 GMT</pubDate>
    <dc:creator>Pratima67301</dc:creator>
    <dc:date>2024-08-29T16:22:24Z</dc:date>
    <item>
      <title>SAS does not give results for overlapping range.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-does-not-give-results-for-overlapping-range/m-p/941771#M42290</link>
      <description>&lt;P&gt;data new dataset;&lt;BR /&gt;set Weight ;&lt;BR /&gt;else if Weight &amp;lt; 1500 then BirthWeight = "2.2 Very low &amp;lt;1500";&lt;BR /&gt;else if Weight &amp;lt; 2500 then BirthWeight = "2.1 Low birth &amp;lt;2500";&lt;BR /&gt;else if Weight &amp;gt;= 2500 and BWGT &amp;lt;= 4000 then BirthWeight = "2.3 2500-4000";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code, but I have a small problem with the output.&lt;/P&gt;&lt;P&gt;I want to find values 2.2 &amp;lt;1,500 and 2.1 &amp;lt;2,500. However, it only provides outputs for values &amp;lt;1,500 and for values that are (&amp;lt;2,500 and &amp;gt;1,500). SAS does not give me results when the values overlap.&amp;nbsp;Any help would be greatly appreciated.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;SPAN class=""&gt;4o&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Aug 2024 16:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-does-not-give-results-for-overlapping-range/m-p/941771#M42290</guid>
      <dc:creator>Pratima67301</dc:creator>
      <dc:date>2024-08-29T16:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS does not give results for overlapping range.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-does-not-give-results-for-overlapping-range/m-p/941873#M42297</link>
      <description>&lt;P&gt;It's difficult to comment, when your program has no chance of doing anything at all.&amp;nbsp; Here's a suggestion that may help.&amp;nbsp; On each observation, there can be only one value for BirthWeight.&amp;nbsp; So decide what you want the final data set to look like before you start programming.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 23:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-does-not-give-results-for-overlapping-range/m-p/941873#M42297</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2024-08-29T23:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS does not give results for overlapping range.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-does-not-give-results-for-overlapping-range/m-p/941875#M42298</link>
      <description>&lt;P&gt;Among other issues, since the code you show has an ELSE IF that is not preceded by an IF, it can not run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In turn that mean the new dataset you intend to output will not be created, or will not be overwritten if it already exists.&amp;nbsp; &amp;nbsp;So if the output dataset already exists and already exhibited the problems you describe, they will still be there in that unmodified dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show us the log of code that actually outputs data, and then we can help diagnose the problem, if it persists.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2024 00:20:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-does-not-give-results-for-overlapping-range/m-p/941875#M42298</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2024-08-30T00:20:37Z</dc:date>
    </item>
  </channel>
</rss>

