<?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: Prxmatch function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function/m-p/843596#M333504</link>
    <description>Thank you, Ksharp !</description>
    <pubDate>Thu, 10 Nov 2022 15:03:25 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2022-11-10T15:03:25Z</dc:date>
    <item>
      <title>Prxmatch function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function/m-p/843554#M333487</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to hold the code with min value from column a (in my exemple it is T244).&lt;/P&gt;
&lt;P&gt;For this, I would like to replace the letter by spaces, and apply the min function.&lt;/P&gt;
&lt;P&gt;Do you know please, how to do that with prxmatch function ? Thank you !&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
a="T244|T244O|T244S|T339";
/*if prxmatch("m/[A-Z]{1,}/oi",a)&amp;gt; 0 then*/
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 10:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function/m-p/843554#M333487</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2022-11-10T10:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function/m-p/843570#M333492</link>
      <description>&lt;P&gt;If you have letters and digits in your data, using compress instead of prxmatch/prxchange is recommended.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   a="T244|T244O|T244S|T339";
   b = compress(a, '|', 'kd');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is this the original form of the data or is "a" created to solve the problem?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 11:50:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function/m-p/843570#M333492</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-11-10T11:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function/m-p/843574#M333496</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
a="T244|T244O|T244S|T339";

min=9999999;
do i=1 to countw(a,'|');
  temp=scan(a,i,'|');
  value=input(compress(temp ,,'kd'),best32.);
  if value&amp;lt;min then do;want=temp;min=value;end;
end;
drop min i temp value;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Nov 2022 12:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function/m-p/843574#M333496</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-11-10T12:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function/m-p/843596#M333504</link>
      <description>Thank you, Ksharp !</description>
      <pubDate>Thu, 10 Nov 2022 15:03:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function/m-p/843596#M333504</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2022-11-10T15:03:25Z</dc:date>
    </item>
  </channel>
</rss>

