<?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 - excact/restriction? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631906#M187262</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Jurisdiction_list=CAR|IL|VN|KK;
data datain;
      infile datalines dsd;
  input ID : $300. ;
datalines;
	CAR ID  MA,
	ILH,
	PAUL  VN,
	KKK GGGG,
	Card ID BMA,
	Care ID FMA,
;

run;
data want;
set datain;
if prxmatch ("/\b(&amp;amp;Jurisdiction_list)\b/i",id) then TempID=id;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.W" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col"&gt;ID&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;TempID&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;CAR ID MA&lt;/TD&gt;
&lt;TD class="l data"&gt;CAR ID MA&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;ILH&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;PAUL VN&lt;/TD&gt;
&lt;TD class="l data"&gt;PAUL VN&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;KKK GGGG&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;Card ID BMA&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;Care ID FMA&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 13 Mar 2020 15:21:10 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2020-03-13T15:21:10Z</dc:date>
    <item>
      <title>Prxmatch - excact/restriction?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631889#M187256</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The prxmatch program below is searching the created&amp;nbsp;macro list&amp;nbsp;as 'CAR|IL|VN|KK'.&amp;nbsp;&amp;nbsp; However, I would like the search be more restricted.&amp;nbsp;&amp;nbsp; Instead of containing the ''CAR|IL|VN|KK'' string in the&amp;nbsp;text,&amp;nbsp; I like to match 100% these two letters.&amp;nbsp;&amp;nbsp; Please advice how to change this prxmatch codes.&amp;nbsp; Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if prxmatch ("/&amp;amp;Jurisdiction_list./i",id) then TempID=id;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The following sample data set is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data datain;
      infile datalines dsd;
  input ID : $300. ;
datalines;
	CAR ID  MA,
	ILH,
	PAUL  VN,
	KKK GGGG,
	Card ID BMA,
	Care ID FMA,
;

run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The final result I am looking for is only at the 1st and 3rd row.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 14:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631889#M187256</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-03-13T14:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch - excact/restriction?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631906#M187262</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let Jurisdiction_list=CAR|IL|VN|KK;
data datain;
      infile datalines dsd;
  input ID : $300. ;
datalines;
	CAR ID  MA,
	ILH,
	PAUL  VN,
	KKK GGGG,
	Card ID BMA,
	Care ID FMA,
;

run;
data want;
set datain;
if prxmatch ("/\b(&amp;amp;Jurisdiction_list)\b/i",id) then TempID=id;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.W" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col"&gt;ID&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;TempID&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;CAR ID MA&lt;/TD&gt;
&lt;TD class="l data"&gt;CAR ID MA&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;ILH&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;PAUL VN&lt;/TD&gt;
&lt;TD class="l data"&gt;PAUL VN&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;KKK GGGG&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;Card ID BMA&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;Care ID FMA&lt;/TD&gt;
&lt;TD class="l data"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631906#M187262</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-03-13T15:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch - excact/restriction?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631912#M187265</link>
      <description>&lt;P&gt;What is the '\b' for?&amp;nbsp; Why need to one&amp;nbsp;at&amp;nbsp;the front and one at the end?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631912#M187265</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-03-13T15:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch - excact/restriction?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631922#M187269</link>
      <description>&lt;P&gt;\b metacharacter is known as word boundary. When you mentioned "absolute" match of a word, my thought went straight to wrap the search string to make it a word boundary with \b&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:35:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631922#M187269</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-03-13T15:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch - excact/restriction?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631925#M187272</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 15:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-excact-restriction/m-p/631925#M187272</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-03-13T15:37:04Z</dc:date>
    </item>
  </channel>
</rss>

