<?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 Macro with PRXMATCH in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-with-PRXMATCH/m-p/989765#M380231</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Today, I'm using the following code to extract rates. I'm wondering if I can create a macro using&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;PRXMATCH&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;to check the values,&amp;nbsp; from 0.50% to 2.70% ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if (prxmatch("/\b0[,\.]45\s*%/",lb_lg)&amp;gt;0
or prxmatch("/\b0[,\.]45\s*%/",lb_)&amp;gt;0)
or (prxmatch("/\b0[,\.]45\s*%/",lb_lg)&amp;gt;0
or prxmatch("/\b0[,\.]45\s*%/",lb)&amp;gt;0) then
do;
Taux=0.0045;
end;

if (prxmatch("/\b0[,\.]50\s*%/",lb_lg)&amp;gt;0
or prxmatch("/\b0[,\.]50\s*%/",lb)&amp;gt;0)
or (prxmatch("/\b0[,\.]5\s*%/",lb_lg)&amp;gt;0
or prxmatch("/\b0[,\.]5\s*%/",lb)&amp;gt;0) then
do;
Taux=0.005;
end;

if prxmatch("/\b1(\.0\b|\.0\%|\%|\s)/",lb_lg)&amp;gt;0 
or prxmatch("/\b1(\.0\b|\.0\%|\%|\s)/",lb)&amp;gt;0 then
do;
Taux=0.01;
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jun 2026 19:50:50 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2026-06-17T19:50:50Z</dc:date>
    <item>
      <title>Macro with PRXMATCH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-with-PRXMATCH/m-p/989765#M380231</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Today, I'm using the following code to extract rates. I'm wondering if I can create a macro using&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;PRXMATCH&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;to check the values,&amp;nbsp; from 0.50% to 2.70% ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if (prxmatch("/\b0[,\.]45\s*%/",lb_lg)&amp;gt;0
or prxmatch("/\b0[,\.]45\s*%/",lb_)&amp;gt;0)
or (prxmatch("/\b0[,\.]45\s*%/",lb_lg)&amp;gt;0
or prxmatch("/\b0[,\.]45\s*%/",lb)&amp;gt;0) then
do;
Taux=0.0045;
end;

if (prxmatch("/\b0[,\.]50\s*%/",lb_lg)&amp;gt;0
or prxmatch("/\b0[,\.]50\s*%/",lb)&amp;gt;0)
or (prxmatch("/\b0[,\.]5\s*%/",lb_lg)&amp;gt;0
or prxmatch("/\b0[,\.]5\s*%/",lb)&amp;gt;0) then
do;
Taux=0.005;
end;

if prxmatch("/\b1(\.0\b|\.0\%|\%|\s)/",lb_lg)&amp;gt;0 
or prxmatch("/\b1(\.0\b|\.0\%|\%|\s)/",lb)&amp;gt;0 then
do;
Taux=0.01;
end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you !&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2026 19:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-with-PRXMATCH/m-p/989765#M380231</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2026-06-17T19:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro with PRXMATCH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-with-PRXMATCH/m-p/989767#M380232</link>
      <description>&lt;P&gt;I think far easier is to convert the text which you describe as&amp;nbsp;0.50% to 2.70% to actual numbers and then checking becomes much much much much easier. And then likely no macro is needed.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jun 2026 20:22:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-with-PRXMATCH/m-p/989767#M380232</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2026-06-17T20:22:00Z</dc:date>
    </item>
  </channel>
</rss>

