<?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: Find the best combination find the best match of two values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Find-the-best-combination-find-the-best-match-of-two-values/m-p/633469#M77888</link>
    <description>&lt;P&gt;Does below do what you need?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro demo(start,stop,inc=0.01 );
  %let i=&amp;amp;start;
  %do %while(%sysevalf(&amp;amp;i&amp;lt;=&amp;amp;stop));
    %put &amp;amp;=i;
    %let i=%sysevalf(&amp;amp;i+&amp;amp;inc);
  %end;

%mend;
%demo(0.05, 100, inc=0.05)&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Mar 2020 00:58:23 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2020-03-20T00:58:23Z</dc:date>
    <item>
      <title>Find the best combination find the best match of two values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-the-best-combination-find-the-best-match-of-two-values/m-p/633468#M77887</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running a macro that aims to find the best the best buckets for intervals of rating corporates companies that has a probability of default. Sadly I can't provide the macro here (because corporate policies and also because isn't something that I can do any changes) but I have a few parameters that I can minimally handle the provided results. Those are, the min percentage of of default on each intervals of rating and the percentage of total clients on each bucket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These two parameters can change from 0.05% until 100%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i'm intending is to find the best combination of those two percentage numbers in a macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other posts is easy to find solutions using macros that uses this kind of logic:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%do i = 1 %to &amp;amp;k ;&lt;BR /&gt;end ;&lt;BR /&gt;%end ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But not for percentage numbers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me how to handle that ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 00:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-the-best-combination-find-the-best-match-of-two-values/m-p/633468#M77887</guid>
      <dc:creator>claudiopcjr</dc:creator>
      <dc:date>2020-03-20T00:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find the best combination find the best match of two values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-the-best-combination-find-the-best-match-of-two-values/m-p/633469#M77888</link>
      <description>&lt;P&gt;Does below do what you need?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro demo(start,stop,inc=0.01 );
  %let i=&amp;amp;start;
  %do %while(%sysevalf(&amp;amp;i&amp;lt;=&amp;amp;stop));
    %put &amp;amp;=i;
    %let i=%sysevalf(&amp;amp;i+&amp;amp;inc);
  %end;

%mend;
%demo(0.05, 100, inc=0.05)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Mar 2020 00:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-the-best-combination-find-the-best-match-of-two-values/m-p/633469#M77888</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2020-03-20T00:58:23Z</dc:date>
    </item>
  </channel>
</rss>

