<?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: Multiple condition statements in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410518#M100306</link>
    <description>&lt;P&gt;You can simplify your code by using a SELECT statement in your data step. A simple google search will do the trick&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also check out the article&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/06/20/select-when-sas-data-step.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/06/20/select-when-sas-data-step.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Nov 2017 08:28:13 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-11-04T08:28:13Z</dc:date>
    <item>
      <title>Multiple condition statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410510#M100302</link>
      <description>&lt;P&gt;Good day to everybody,&lt;/P&gt;&lt;P&gt;I need some help to re-write my data code.&lt;/P&gt;&lt;P&gt;I'm trying to compare children's weight and height with a WHO pattern, so I made the following code, but the problem is that results are not being categorizing according to my code, and I'm just getting just numbers 2 and sometimes jus full three. I'm attaching my code. I will really appreciate your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*weight vs age*/&lt;/P&gt;&lt;P&gt;if ch_sex=1 and ch_age_months=12 and chweightd&amp;lt;=6.9 then pvse=1 ; else&lt;BR /&gt;if ch_sex=1 and ch_age_months=12 and (chweightd&amp;gt;6.9 or chweightd&amp;lt;=7.7) then pvse=2 ;&lt;BR /&gt;if ch_sex=1 and ch_age_months=12 and (chweightd&amp;gt;7.7 or chweightd&amp;lt;=10.8) then pvse=3 ; else&lt;BR /&gt;if ch_sex=1 and ch_age_months=12 and chweightd&amp;gt;10.8 then pvse=4 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if ch_sex=2 and ch_age_months=12 and chweightd&amp;lt;=6.3 then pvse=1 ; else&lt;BR /&gt;if ch_sex=2 and ch_age_months=12 and (chweightd&amp;gt;6.3 or chweightd&amp;lt;=7.0) then pvse=2 ;&lt;BR /&gt;if ch_sex=2 and ch_age_months=12 and (chweightd&amp;gt;7.0 or chweightd&amp;lt;=10.1) then pvse=3 ; else&lt;BR /&gt;if ch_sex=2 and ch_age_months=12 and chweightd&amp;gt;10.1 then pvse=4 ;&lt;/P&gt;&lt;P&gt;/*PVSE&amp;gt;&amp;gt; 1=severe low weight&amp;nbsp;&amp;nbsp; 2=low weight&amp;nbsp;&amp;nbsp; 3=normal&amp;nbsp;&amp;nbsp; 4=possible growth problem*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*weight vs height*/&lt;BR /&gt;if ch_sex=2 and chheightd=45 and chweightd&amp;lt;=1.9 then pvst=1 ;&lt;BR /&gt;if ch_sex=2 and chheightd=45 and (chweightd&amp;gt;1.9 or chweightd&amp;lt;=2.1) then pvst=2 ;&lt;BR /&gt;if ch_sex=2 and chheightd=45 and (chweightd&amp;gt;2.1 or chweightd&amp;lt;=2.7) then pvst=3 ;&lt;BR /&gt;if ch_sex=2 and chheightd=45 and (chweightd&amp;gt;2.7 or chweightd&amp;lt;=3.0) then pvst=4 ;&lt;BR /&gt;if ch_sex=2 and chheightd=45 and (chweightd&amp;gt;3.0 or chweightd&amp;lt;=3.3) then pvst=5 ;&lt;BR /&gt;if ch_sex=2 and chheightd=45 and chweightd&amp;gt;3.3 then pvst=6 ;&lt;BR /&gt;&lt;BR /&gt;if ch_sex=1 and chheightd=45 and chweightd&amp;lt;=1.9 then pvst=1 ;&lt;BR /&gt;if ch_sex=1 and chheightd=45 and (chweightd&amp;gt;1.9 or chweightd&amp;lt;=2.0) then pvst=2 ;&lt;BR /&gt;if ch_sex=1 and chheightd=45 and (chweightd&amp;gt;2.0 or chweightd&amp;lt;=2.7) then pvst=3 ;&lt;BR /&gt;if ch_sex=1 and chheightd=45 and (chweightd&amp;gt;2.7 or chweightd&amp;lt;=3.0) then pvst=4 ;&lt;BR /&gt;if ch_sex=1 and chheightd=45 and (chweightd&amp;gt;3.0 or chweightd&amp;lt;=3.3) then pvst=5 ;&lt;BR /&gt;if ch_sex=1 and chheightd=45 and chweightd&amp;gt;3.3 then pvst=6 ;&lt;BR /&gt;/*PVST &amp;gt;&amp;gt; 1= severe malnourished&amp;nbsp;&amp;nbsp; 2=malnourished&amp;nbsp;&amp;nbsp; 3=normal&amp;nbsp;&amp;nbsp; 4=risk of overweight&amp;nbsp;&amp;nbsp; 5=overweight&amp;nbsp;&amp;nbsp; 6=obesity*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*height vs age*/&lt;/P&gt;&lt;P&gt;if ch_sex=2 and ch_age_months=0 and chheightd&amp;lt;=43.6 then tvse=1 ;&lt;BR /&gt;if ch_sex=2 and ch_age_months=0 and (chheightd&amp;gt;43.6 or chheightd&amp;lt;=45.4) then tvse=2 ;&lt;BR /&gt;if ch_sex=2 and ch_age_months=0 and (chheightd&amp;gt;45.4 or chheightd&amp;lt;=54.7) then pvse=3 ;&lt;BR /&gt;if ch_sex=2 and ch_age_months=0 and chheightd&amp;gt;54.7 then pvse=4 ;&lt;BR /&gt;&lt;BR /&gt;if ch_sex=1 and ch_age_months=0 and chheightd&amp;lt;=44.2 then tvse=1 ;&lt;BR /&gt;if ch_sex=1 and ch_age_months=0 and (chheightd&amp;gt;44.2 or chheightd&amp;lt;=46.1) then tvse=2 ;&lt;BR /&gt;if ch_sex=1 and ch_age_months=0 and (chheightd&amp;gt;46.1 or chheightd&amp;lt;=55.6) then pvse=3 ;&lt;BR /&gt;if ch_sex=1 and ch_age_months=0 and chheightd&amp;gt;55.6 then pvse=4 ;&lt;BR /&gt;/*TVSE &amp;gt;&amp;gt; 1= severe low height&amp;nbsp; 2=low height &amp;nbsp; 3=normal&amp;nbsp; 4=tall */&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 06:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410510#M100302</guid>
      <dc:creator>Lea1702</dc:creator>
      <dc:date>2017-11-04T06:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410518#M100306</link>
      <description>&lt;P&gt;You can simplify your code by using a SELECT statement in your data step. A simple google search will do the trick&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also check out the article&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/06/20/select-when-sas-data-step.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/06/20/select-when-sas-data-step.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 08:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410518#M100306</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-11-04T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410525#M100308</link>
      <description>&lt;P&gt;Your problems are caused by inconsistent use of the word ELSE, as well as using OR when you should use AND.&amp;nbsp; For example, note that this condition must be true every time:&amp;nbsp; &lt;SPAN&gt;&amp;nbsp;(chweightd&amp;gt;6.9 or chweightd&amp;lt;=7.7)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a style that will run faster and illustrates better logic:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if ch_sex=1 and ch_age_months=12 then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;if chweightd &amp;lt;= 6.9 then pvse=1 ; else&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if chweightd&amp;lt;=7.7 then pvse=2 ; else&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if chweightd&amp;lt;=10.8 then pvse=3 ; else&lt;BR /&gt;&amp;nbsp; &amp;nbsp;pvse=4 ;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;else&amp;nbsp;if ch_sex=2 and ch_age_months=12 then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;if chweightd&amp;lt;=6.3 then pvse=1 ; else&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if chweightd&amp;lt;=7.0 then pvse=2 ; ELSE&lt;BR /&gt;&amp;nbsp; &amp;nbsp;if chweightd&amp;lt;=10.1 then pvse=3 ; else&lt;BR /&gt;&amp;nbsp; &amp;nbsp;pvse=4 ;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll need to fill in the rest.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 12:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410525#M100308</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-11-04T12:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410553#M100312</link>
      <description>&lt;P&gt;&lt;SPAN&gt;chweightd&amp;gt;1.9 or chweightd&amp;lt;=2.1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This OR condition will almost always&amp;nbsp;evaluate to true.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 15:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410553#M100312</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-04T15:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410559#M100313</link>
      <description>&lt;P&gt;Also what do you want to do with missing values for the weight?&amp;nbsp; With your current code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ch_sex=1
ch_age_months=12
chweightd=.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;will get codes as&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;pvse=1 since missing values are less than any real number.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2017 16:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410559#M100313</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-04T16:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410788#M100387</link>
      <description>&lt;P&gt;I am analyzing children's weight and height comparing them with WHO's pattern, to know their nutritional status.&lt;/P&gt;&lt;P&gt;So, I do really need that information. I'm deleting all missing values&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410788#M100387</guid>
      <dc:creator>Lea1702</dc:creator>
      <dc:date>2017-11-06T10:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410789#M100388</link>
      <description>&lt;P&gt;Dear #Astounging thanks for your help.&lt;/P&gt;&lt;P&gt;Althought I changed my code according to your suggestion the results are same. I tryed to re-write my previous code but this time erasing "else" and i could get some results but still some values are wrong. Some should have twos but it appears threes.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 10:12:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410789#M100388</guid>
      <dc:creator>Lea1702</dc:creator>
      <dc:date>2017-11-06T10:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410809#M100391</link>
      <description>&lt;P&gt;We'll need to see what your code looks like now ... too many possibilities to guess at.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2017 12:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/410809#M100391</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-11-06T12:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/411072#M100473</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Dear #Astounding, thanks one more time for replying. What happens when i changed the weight vs age proc using 'then do' statement was that all results changed into twos. So, i decided to changed the code to the initial version but erasing all 'else' words, and I get reuslts. Then, I thought your suggestion could work in my "weight vs height" code but results were same..I mean twos. Then I tryied to use a different sintax as you can see, although there were values shouldn't be condidered for the analysis in the results appeared numbers five and six. I'm new in sas and I dont know how i can improve my code.&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;/*weight vs age*/
if chweightd=. then delete ;
if chheightd=. then delete ;

if ch_sex=2 and ch_age_months=12 and chweightd&amp;lt;=6.3 then pvse=1 ; 
if ch_sex=2 and ch_age_months=12 and (chweightd&amp;gt;6.3 or chweightd&amp;lt;=7.0) then pvse=2 ; 
if ch_sex=2 and ch_age_months=12 and (chweightd&amp;gt;7.0 or chweightd&amp;lt;=10.1) then pvse=3 ; 
if ch_sex=2 and ch_age_months=12 and chweightd&amp;gt;10.1 then pvse=4 ;

if ch_sex=2 and ch_age_months=13 and chweightd&amp;lt;=6.4 then pvse=1 ; 
if ch_sex=2 and ch_age_months=13 and (chweightd&amp;gt;6.4 or chweightd&amp;lt;=7.2) then pvse=2 ; 
if ch_sex=2 and ch_age_months=13 and (chweightd&amp;gt;7.2 or chweightd&amp;lt;=10.4) then pvse=3 ; 
if ch_sex=2 and ch_age_months=13 and chweightd&amp;gt;10.4 then pvse=4 ;

if ch_sex=1 and ch_age_months=12 and chweightd&amp;lt;=6.9 then pvse=1 ; 
if ch_sex=1 and ch_age_months=12 and (chweightd&amp;gt;6.9 or chweightd&amp;lt;=7.7) then pvse=2 ; 
if ch_sex=1 and ch_age_months=12 and (chweightd&amp;gt;7.7 or chweightd&amp;lt;=10.8) then pvse=3 ; 
if ch_sex=1 and ch_age_months=12 and chweightd&amp;gt;10.8 then pvse=4 ;

if ch_sex=1 and ch_age_months=13 and chweightd&amp;lt;=7.1 then pvse=1 ; 
if ch_sex=1 and ch_age_months=13 and (chweightd&amp;gt;7.1 or chweightd&amp;lt;=7.9) then pvse=2 ; 
if ch_sex=1 and ch_age_months=13 and (chweightd&amp;gt;7.9 or chweightd&amp;lt;=11.0) then pvse=3 ; 
if ch_sex=1 and ch_age_months=13 and chweightd&amp;gt;11.0 then pvse=4 ; &lt;BR /&gt;/*1=severe underweight&amp;nbsp;&amp;nbsp; 2=underweight&amp;nbsp;&amp;nbsp; 3=normal&amp;nbsp;&amp;nbsp; 4=possible growth problem*/&lt;BR /&gt;/*value series is divided by sex and completed until 60 months*/
&lt;BR /&gt;&lt;BR /&gt;/*weight vs height/lenght*/&lt;BR /&gt;
if (ch_sex=2 and (chheightd&amp;gt;69.5 or chheightd&amp;lt;=70) and chweightd&amp;lt;=6.3) then pvst=1 ;  
if (ch_sex=2 and (chheightd&amp;gt;69.5 or chheightd&amp;lt;=70)  and (chweightd&amp;gt;6.3 or chweightd&amp;lt;=6.9)) then pvst=2 ; 
if (ch_sex=2 and (chheightd&amp;gt;69.5 or chheightd&amp;lt;=70)  and (chweightd&amp;gt;6.9 or chweightd&amp;lt;=9.0)) then pvst=3 ; 
if (ch_sex=2 and (chheightd&amp;gt;69.5 or chheightd&amp;lt;=70)  and (chweightd&amp;gt;9.0 or chweightd&amp;lt;=9.9)) then pvst=4 ;  
if (ch_sex=2 and (chheightd&amp;gt;69.5 or chheightd&amp;lt;=70)  and (chweightd&amp;gt;9.9 or chweightd&amp;lt;=10.9)) then pvst=5 ;  
if (ch_sex=2 and (chheightd&amp;gt;69.5 or chheightd&amp;lt;=70)  and chweightd&amp;gt;10.9) then pvst=6 ;

if (ch_sex=2 and (chheightd&amp;gt;70 or chheightd&amp;lt;=70.5) and chweightd&amp;lt;=6.4) then pvst=1 ;  
if (ch_sex=2 and (chheightd&amp;gt;70 or chheightd&amp;lt;=70.5) and (chweightd&amp;gt;6.4 or chweightd&amp;lt;=6.9)) then pvst=2 ; 
if (ch_sex=2 and (chheightd&amp;gt;70 or chheightd&amp;lt;=70.5) and (chweightd&amp;gt;6.9 or chweightd&amp;lt;=9.1)) then pvst=3 ; 
if (ch_sex=2 and (chheightd&amp;gt;70 or chheightd&amp;lt;=70.5) and (chweightd&amp;gt;9.1 or chweightd&amp;lt;=10.0)) then pvst=4 ;  
if (ch_sex=2 and (chheightd&amp;gt;70 or chheightd&amp;lt;=70.5) and (chweightd&amp;gt;10.0 or chweightd&amp;lt;=11.0)) then pvst=5 ;  
if (ch_sex=2 and (chheightd&amp;gt;70 or chheightd&amp;lt;=70.5) and chweightd&amp;gt;11.0) then pvst=6 ; 
&lt;BR /&gt;if (ch_sex=2 and (chheightd&amp;gt;70.5 or chheightd&amp;lt;=71) and chweightd&amp;lt;=6.5) then pvst=1 ; &lt;BR /&gt;if (ch_sex=2 and (chheightd&amp;gt;70.5 or chheightd&amp;lt;=71) and (chweightd&amp;gt;6.5 or chweightd&amp;lt;=7.0)) then pvst=2 ;&lt;BR /&gt;if (ch_sex=2 and (chheightd&amp;gt;70.5 or chheightd&amp;lt;=71) and (chweightd&amp;gt;7.0 or chweightd&amp;lt;=9.2)) then pvst=3 ; &lt;BR /&gt;if (ch_sex=2 and (chheightd&amp;gt;70.5 or chheightd&amp;lt;=71) and (chweightd&amp;gt;9.2 or chweightd&amp;lt;=10.1)) then pvst=4 ; &lt;BR /&gt;if (ch_sex=2 and (chheightd&amp;gt;70.5 or chheightd&amp;lt;=71) and (chweightd&amp;gt;10.1 or chweightd&amp;lt;=11.1)) then pvst=5 ; &amp;nbsp;&lt;BR /&gt;if (ch_sex=2 and (chheightd&amp;gt;70.5 or chheightd&amp;lt;=71) and chweightd&amp;gt;11.1) then pvst=6 ; &lt;BR /&gt;/*1= severe wasted&amp;nbsp;&amp;nbsp; 2=wasted&amp;nbsp;&amp;nbsp; 3=normal&amp;nbsp;&amp;nbsp; 4=risk of overweight&amp;nbsp;&amp;nbsp; 5=overweight&amp;nbsp;&amp;nbsp; 6=obesity*/&lt;BR /&gt;&lt;BR /&gt;/*height vs age*/&lt;BR /&gt;&lt;BR /&gt;if ch_sex=2 and ch_age_months=12 and chheightd&amp;lt;=43.6 then tvse=1 ; &lt;BR /&gt;if ch_sex=2 and ch_age_months=12 and (chheightd&amp;gt;43.6 or chheightd&amp;lt;=45.4) then tvse=2 ; &lt;BR /&gt;if ch_sex=2 and ch_age_months=12 and (chheightd&amp;gt;45.4 or chheightd&amp;lt;=54.7) then pvse=3 ;&lt;BR /&gt;if ch_sex=2 and ch_age_months=12 and chheightd&amp;gt;54.7 then pvse=4 ;&lt;BR /&gt;&lt;BR /&gt;if ch_sex=1 and ch_age_months=12 and chheightd&amp;lt;=44.2 then tvse=1 ; &lt;BR /&gt;if ch_sex=1 and ch_age_months=12 and (chheightd&amp;gt;44.2 or chheightd&amp;lt;=46.1) then tvse=2 ; &lt;BR /&gt;if ch_sex=1 and ch_age_months=12 and (chheightd&amp;gt;46.1 or chheightd&amp;lt;=55.6) then pvse=3 ;&lt;BR /&gt;if ch_sex=1 and ch_age_months=12 and chheightd&amp;gt;55.6 then pvse=4 ;&lt;BR /&gt;/*1= severely stunted&amp;nbsp; 2=stunted&amp;nbsp;&amp;nbsp; 3=normal&amp;nbsp; 4=tall */&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 07:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/411072#M100473</guid>
      <dc:creator>Lea1702</dc:creator>
      <dc:date>2017-11-07T07:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple condition statements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/411122#M100492</link>
      <description>&lt;P&gt;Sorry, don't think I can help here.&amp;nbsp; This version of the code doesn't reflect any of the suggestions that I made previously.&amp;nbsp; Best of luck.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 11:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-condition-statements/m-p/411122#M100492</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-11-07T11:16:50Z</dc:date>
    </item>
  </channel>
</rss>

