<?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: If-Then in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/If-Then/m-p/88340#M25201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom already replied to this in a duplicate posting you made.&amp;nbsp; I have to ask: "did you really intend on having duplicate if-then-else statements?&amp;nbsp; The first four lines, under your do loop, recode the values.&amp;nbsp; What, if any, was the purpose of the second and third groups of if-then-else statements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Oct 2012 22:24:53 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-10-06T22:24:53Z</dc:date>
    <item>
      <title>If-Then</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/If-Then/m-p/88339#M25200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;would some one help with this code. Instead of 0 1 2 3 I get only 0's and 1's why? &lt;/P&gt;&lt;P&gt;data IEEE.item_coded (drop=item1-item116 iii);&lt;/P&gt;&lt;P&gt;set IEEE.item;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;array f_item(116);&lt;/P&gt;&lt;P&gt;array item(*) item1-item116;&lt;/P&gt;&lt;P&gt;do iii=1 to 116;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if item{iii}&amp;lt;0.000623175 then f_item{iii}=3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else if item{iii} lt 0.002864969 then f_item{iii}=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else if item{iii} lt 0.013617708 then f_item{iii}=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else if item{iii} le 0.431834293 then f_item{iii}=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if item{iii} lt 0.001041523 then f_item{iii}=2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else if item{iii} lt 0.008116862 then f_item{iii}=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else if item{iii} le 0.431834293 then f_item{iii}=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if item{iii} lt 0.002864969 then f_item{iii}=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; else if item{iii} le 0.431834293 then f_item{iii}=0;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 22:08:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/If-Then/m-p/88339#M25200</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2012-10-06T22:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: If-Then</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/If-Then/m-p/88340#M25201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom already replied to this in a duplicate posting you made.&amp;nbsp; I have to ask: "did you really intend on having duplicate if-then-else statements?&amp;nbsp; The first four lines, under your do loop, recode the values.&amp;nbsp; What, if any, was the purpose of the second and third groups of if-then-else statements?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 22:24:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/If-Then/m-p/88340#M25201</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-06T22:24:53Z</dc:date>
    </item>
  </channel>
</rss>

