<?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 alteranative for if else.. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/alteranative-for-if-else/m-p/46103#M9524</link>
    <description>hi..&lt;BR /&gt;
&lt;BR /&gt;
I want to replace a whole huge list of if else statements that we currently use with some kind of an efficient way.&lt;BR /&gt;
any suggessions?</description>
    <pubDate>Sat, 23 Jan 2010 20:14:30 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-01-23T20:14:30Z</dc:date>
    <item>
      <title>alteranative for if else..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alteranative-for-if-else/m-p/46103#M9524</link>
      <description>hi..&lt;BR /&gt;
&lt;BR /&gt;
I want to replace a whole huge list of if else statements that we currently use with some kind of an efficient way.&lt;BR /&gt;
any suggessions?</description>
      <pubDate>Sat, 23 Jan 2010 20:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alteranative-for-if-else/m-p/46103#M9524</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-23T20:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: alteranative for if else..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alteranative-for-if-else/m-p/46104#M9525</link>
      <description>It depends on the &lt;EXPRESSION&gt; construct(s) used in your IF / THEN.  It may be that PROC FORMAT along with a PUT function in your assignment statement might work for some, if not all, of your data-values referenced in the expression(s) you have coded.&lt;BR /&gt;
&lt;BR /&gt;
Other options are SELECT/WHEN/OTHERWISE/END  and possibly a hash table approach may work for your SAS application program.&lt;BR /&gt;
&lt;BR /&gt;
Suggest checking the SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website - also you may want to reply to your post and PASTE some examples of the different / unique coding expressions used.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/EXPRESSION&gt;</description>
      <pubDate>Sat, 23 Jan 2010 22:36:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alteranative-for-if-else/m-p/46104#M9525</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-01-23T22:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: alteranative for if else..</title>
      <link>https://communities.sas.com/t5/SAS-Programming/alteranative-for-if-else/m-p/46105#M9526</link>
      <description>Hi:&lt;BR /&gt;
 Sometimes IF/THEN/ELSE statement usage falls into a category of programming called "table lookup".&lt;BR /&gt;
 &lt;BR /&gt;
  These papers contain some good ideas about lookup techniques and efficiency in general:&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi26/p158-26.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi26/p158-26.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi27/p011-27.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi27/p011-27.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.codecraftersinc.com/pdf/SUNZefficiency.pdf" target="_blank"&gt;http://www.codecraftersinc.com/pdf/SUNZefficiency.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi27/p195-27.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi27/p195-27.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://analytics.ncsu.edu/sesug/2006/SC19_06.PDF" target="_blank"&gt;http://analytics.ncsu.edu/sesug/2006/SC19_06.PDF&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi31/249-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/249-31.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/resources/papers/proceedings09/037-2009.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings09/037-2009.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Sat, 23 Jan 2010 23:13:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/alteranative-for-if-else/m-p/46105#M9526</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-01-23T23:13:11Z</dc:date>
    </item>
  </channel>
</rss>

