<?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 didn't recognize the macro list? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631316#M187037</link>
    <description>&lt;P&gt;Thank you so much.&amp;nbsp; I didn't know it need to use double quote for the macro list.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 17:48:38 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2020-03-11T17:48:38Z</dc:date>
    <item>
      <title>Prxmatch didn't recognize the macro list?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631299#M187029</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a macro list below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
	select trim(State_Abbr) into : Jurisdiction_list separated by '|'  from States;
quit;

%put &amp;amp;Jurisdiction_list;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the result is shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AL|AK|AZ|AR|CA|CO|CT|DE|FL|GA&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I run a data step in PRXMATCH,&amp;nbsp; I found the &amp;amp;Jurisdiction_list. was NOT able to recognize.&amp;nbsp; Any idea why?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	SET test;
       
       if prxmatch ('/&amp;amp;Jurisdiction_list./i',ID) then TempID=ID;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:23:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631299#M187029</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-03-11T17:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch didn't recognize the macro list?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631300#M187030</link>
      <description>&lt;P&gt;But when I hardcode for that list, it worked.&amp;nbsp; I can't figure out where went wrong from the above codes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	SET test;
       if prxmatch ('/AL|AK|AZ|AR|CA/i',id) then TempID=id;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631300#M187030</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-03-11T17:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch didn't recognize the macro list?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631303#M187031</link>
      <description>&lt;P&gt;Did you miss to enclose the string literal in double quotes &lt;STRONG&gt;"&amp;nbsp; &amp;nbsp; &amp;nbsp;"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;prxmatch ("/&amp;amp;Jurisdiction_list./i",ID) &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631303#M187031</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-03-11T17:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch didn't recognize the macro list?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631304#M187032</link>
      <description>&lt;P&gt;use double quotes to enclose your macro variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;24         
25         GOPTIONS ACCESSIBLE;
26         %Let Jurisdiction_list=%str(AL|AK|AZ|AR|CA|CO|CT|DE|FL|GA);
27         
28         data _null_;
29         /*	SET test;*/
30                ID='AK';
31         
32                if prxmatch ("/&amp;amp;Jurisdiction_list./i",ID) then TempID=ID;
33         
34         	   put TempID=;
35         run;

TempID=AK&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631304#M187032</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2020-03-11T17:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch didn't recognize the macro list?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631316#M187037</link>
      <description>&lt;P&gt;Thank you so much.&amp;nbsp; I didn't know it need to use double quote for the macro list.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:48:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631316#M187037</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-03-11T17:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch didn't recognize the macro list?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631317#M187038</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The use of single quotes prevents the resolution of the macrovariable, so&amp;nbsp;you need to use double quotes to avoid this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if prxmatch ("/AL|AK|AZ|AR|CA/I",id) then TempID=id;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;All the best,&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:48:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-didn-t-recognize-the-macro-list/m-p/631317#M187038</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-03-11T17:48:44Z</dc:date>
    </item>
  </channel>
</rss>

