<?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: I want to get the minimum/lower plan under the below condition? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843372#M333429</link>
    <description>&lt;P&gt;If I understand you correctly, create two variables (plan_Alpha and plan_Beta) instead of one.&amp;nbsp; Then it's easy to obtain the result you describe:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if alpha=beta=2 then plan = min(plan_alpha, plan_beta);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 15:11:11 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2022-11-09T15:11:11Z</dc:date>
    <item>
      <title>I want to get the minimum/lower plan under the below condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843349#M333420</link>
      <description>&lt;P&gt;if Alpha=2 then plan =3;&lt;/P&gt;&lt;P&gt;if Alpha=3 then plan =1;&lt;/P&gt;&lt;P&gt;else if Alpha=4 then plan =0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if Beta=2 then plan =2;&lt;/P&gt;&lt;P&gt;else Beta=3 then plan =1;&lt;/P&gt;&lt;P&gt;else if Beta=4 then plan =0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the minimum/lower plan under the below condition? so as an answer I need beta here&lt;/P&gt;&lt;P&gt;if Alpha=2 then plan =3;&lt;/P&gt;&lt;P&gt;if Beta=2 then plan =2;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 12:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843349#M333420</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2022-11-09T12:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get the minimum/lower plan under the below condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843350#M333421</link>
      <description>&lt;P&gt;Assuming you have correctly calculated Alpha and Beta (and looking at your logic it appears it needs a little cleaning up), you could use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;plan = min(alpha, beta);&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:09:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843350#M333421</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-11-09T13:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get the minimum/lower plan under the below condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843353#M333423</link>
      <description>The code is correct plan=min (alpha, beta) will give the min of all alpha&lt;BR /&gt;and beta&lt;BR /&gt;&lt;BR /&gt;I just need min condition when both alpha and beta hit 2&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843353#M333423</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2022-11-09T13:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get the minimum/lower plan under the below condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843359#M333424</link>
      <description>&lt;P&gt;To get that, you will need to show more of the data.&amp;nbsp; What you posted doesn't illustrate either variable "hitting 2".&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 13:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843359#M333424</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-11-09T13:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get the minimum/lower plan under the below condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843363#M333426</link>
      <description>The code is correct&lt;BR /&gt;plan=min (alpha, beta) will give the min of all alpha and beta&lt;BR /&gt;if Alpha=3 then plan =1;&lt;BR /&gt;else if Alpha=4 then plan =0;&lt;BR /&gt;&lt;BR /&gt;if Beta=3 then plan =1;&lt;BR /&gt;else if Beta=4 then plan =0;&lt;BR /&gt;&lt;BR /&gt;plan=min (alpha, beta) will give the min of all alpha and beta&lt;BR /&gt;Just required the min condition of the below code when both Alpha=2 and Beta=2&lt;BR /&gt;&lt;BR /&gt;if Alpha=2 then plan =3;&lt;BR /&gt;if Beta=2 then plan =2;</description>
      <pubDate>Wed, 09 Nov 2022 13:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843363#M333426</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2022-11-09T13:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get the minimum/lower plan under the below condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843364#M333427</link>
      <description>Just required the min plan of the below code when both Alpha=2 and Beta=2</description>
      <pubDate>Wed, 09 Nov 2022 13:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843364#M333427</guid>
      <dc:creator>animesh123</dc:creator>
      <dc:date>2022-11-09T13:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: I want to get the minimum/lower plan under the below condition?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843372#M333429</link>
      <description>&lt;P&gt;If I understand you correctly, create two variables (plan_Alpha and plan_Beta) instead of one.&amp;nbsp; Then it's easy to obtain the result you describe:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if alpha=beta=2 then plan = min(plan_alpha, plan_beta);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 15:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-want-to-get-the-minimum-lower-plan-under-the-below-condition/m-p/843372#M333429</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2022-11-09T15:11:11Z</dc:date>
    </item>
  </channel>
</rss>

