<?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 conditions with multiple variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multiple-conditions-with-multiple-variables/m-p/451426#M283653</link>
    <description>&lt;P&gt;Thank you so much for your valious feedback. It worked perfect.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 08:45:17 GMT</pubDate>
    <dc:creator>Lop</dc:creator>
    <dc:date>2018-04-05T08:45:17Z</dc:date>
    <item>
      <title>Multiple conditions with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-conditions-with-multiple-variables/m-p/449885#M283651</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;I'm trying to find a solution how to apply multple conditions, or another code that can help me with this condition.&lt;/P&gt;&lt;P&gt;My outcome is "MetSind", and I have 5 condtions. At least there should be accomplished three of them to get MetSind=yes&lt;/P&gt;&lt;P&gt;1. waist&amp;gt;88&lt;/P&gt;&lt;P&gt;2. tg&amp;gt;=150 or hyplip_treat=yes&lt;/P&gt;&lt;P&gt;3. hdl_c&amp;lt;50&lt;/P&gt;&lt;P&gt;4. msbp&amp;gt;=130 or mdbp&amp;gt;=85 or hta_treat=yes&lt;/P&gt;&lt;P&gt;5. glu&amp;gt;=100 or dm_dx=yes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying to use this code: if ((waist&amp;gt;88) or (tg&amp;gt;=150 or hyplip_treat=yes) or (hdl_c&amp;lt;50) or (msbp&amp;gt;=130 or mdbp&amp;gt;=85 or hta_treat=yes) and (glu&amp;gt;=100 or dm_dx=yes)) then MetS=1 ; else MetS=0. But, clearly it doesn't work.&lt;/P&gt;&lt;P&gt;I am beginner sas user so I would like some expert's help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 11:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-conditions-with-multiple-variables/m-p/449885#M283651</guid>
      <dc:creator>Lop</dc:creator>
      <dc:date>2018-03-30T11:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple conditions with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-conditions-with-multiple-variables/m-p/449886#M283652</link>
      <description>&lt;P&gt;Make use of the fact that boolean values in SAS are represented as 0 and 1:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if
  (waist &amp;gt; 88) +
  (tg &amp;gt;= 150 or b6_1_3 = 2) +
  (hdl_c &amp;lt; 50) +
  (msbp &amp;gt;= 130 or mdbp &amp;gt;= 85 or b6_1_2 = 2) +
  (glu_0 &amp;gt;= 100 or dm_dx = 2)
&amp;gt;= 3
then MetS = 1;
else MetS = 0;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Mar 2018 11:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-conditions-with-multiple-variables/m-p/449886#M283652</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-30T11:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple conditions with multiple variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multiple-conditions-with-multiple-variables/m-p/451426#M283653</link>
      <description>&lt;P&gt;Thank you so much for your valious feedback. It worked perfect.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 08:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multiple-conditions-with-multiple-variables/m-p/451426#M283653</guid>
      <dc:creator>Lop</dc:creator>
      <dc:date>2018-04-05T08:45:17Z</dc:date>
    </item>
  </channel>
</rss>

