<?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 with string containing ampersand in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PRXMATCH-with-string-containing-ampersand/m-p/952855#M372373</link>
    <description>&lt;P&gt;Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 07 Dec 2024 17:28:06 GMT</pubDate>
    <dc:creator>PamG</dc:creator>
    <dc:date>2024-12-07T17:28:06Z</dc:date>
    <item>
      <title>PRXMATCH with string containing ampersand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXMATCH-with-string-containing-ampersand/m-p/952844#M372367</link>
      <description>&lt;P&gt;How do I go about using PRXMATCH to search for a string that contains ampersand ? SAS is assuming that it is a macro variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input varchar $;
datalines;
ABCDEF
GHI
KLM
KLM&amp;amp;F
KLM&amp;amp;FG
;
run;

data want;set have;
if prxmatch("m/KLM&amp;amp;F/i,varchar) &amp;gt;0; *gives an error Macro variable F not resolved;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 15:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXMATCH-with-string-containing-ampersand/m-p/952844#M372367</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2024-12-07T15:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: PRXMATCH with string containing ampersand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXMATCH-with-string-containing-ampersand/m-p/952845#M372368</link>
      <description>&lt;P&gt;Correction: Please note that I missed putting the ending quotation marks after /i.&amp;nbsp; I cannot edit my post to make the correction.&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 16:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXMATCH-with-string-containing-ampersand/m-p/952845#M372368</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2024-12-07T16:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: PRXMATCH with string containing ampersand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXMATCH-with-string-containing-ampersand/m-p/952853#M372372</link>
      <description>&lt;P&gt;Use single quotes so the macro processor will ignore the string.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if prxmatch('m/KLM&amp;amp;F/i',varchar) &amp;gt;0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 17:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXMATCH-with-string-containing-ampersand/m-p/952853#M372372</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-12-07T17:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: PRXMATCH with string containing ampersand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PRXMATCH-with-string-containing-ampersand/m-p/952855#M372373</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 17:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PRXMATCH-with-string-containing-ampersand/m-p/952855#M372373</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2024-12-07T17:28:06Z</dc:date>
    </item>
  </channel>
</rss>

