<?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: Creating variables using PRXMATCH() and SCAN() in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873227#M43191</link>
    <description>&lt;P&gt;&lt;FONT size="2"&gt;Thanks to Qoit and Ballardw.&amp;nbsp; I revised the solution suggested by Qoit to accommodate additional scenarios (the last two records) from the data.&amp;nbsp; My code revisions include the LENGTH() in the third argument of the SUBSTR(). Any other solutions (e.g., regex) are welcome.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
length file_id $ 10;  
infile datalines length = reclen; 
input string $varying32767. reclen;
position  = prxmatch('m/"HC-\w+/i',string);
	if position ^= 0 then do;
	    file_id = scan(string, 2, '"');
		file_id_x = scan(string, 2, '&amp;gt;');
		if file_id_x =: "ME" then file_id_x = substr(file_id_x,6,LENGTH(file_id));
		else if file_id_x =: "H" then file_id_x = substr(file_id_x,1,LENGTH(file_id));
	 output;
	end;
datalines;
&amp;lt;option value="HC-220A"&amp;gt;MEPS HC-220A: 2020 Prescribed Medicines File&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-224"&amp;gt;MEPS HC-219: 2020 Full Year Population Characteristics File&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-010I"&amp;gt;HC-010I Appendix to MEPS 1996 Event Files&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-036BRR"&amp;gt;MEPS HC-036BRR: MEPS 1996-2020 Replicate File for BRR Variance Estimation&amp;lt;/option&amp;gt;
&amp;lt;td width="76" height="0"&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;label for="datatype2"&amp;gt;&amp;lt;span class="small"&amp;gt;File type:&amp;lt;/label&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;
;
run;
proc print data=test;
var file_id file_id_x;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Obs&amp;nbsp; file_id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;file_id_x&lt;/P&gt;
&lt;PRE&gt;1  HC-220A&amp;nbsp; &amp;nbsp;  &amp;nbsp; &amp;nbsp;HC-220A&lt;BR /&gt;2  HC-224&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HC-219&lt;BR /&gt;3  HC-010I&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HC-010I&lt;BR /&gt;4  HC-036BRR     HC-036BRR&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;1 HC-220A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HC-220A&lt;BR /&gt;2 HC-224&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HC-219&lt;BR /&gt;3 HC-010I&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HC-010I&lt;BR /&gt;4 HC-036BRR HC-036BRR&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 18:27:30 GMT</pubDate>
    <dc:creator>pkm_edu</dc:creator>
    <dc:date>2023-05-01T18:27:30Z</dc:date>
    <item>
      <title>Creating variables using PRXMATCH() and SCAN()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873109#M43187</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;The program below creates variables&amp;nbsp;using PRXMATCH() and SCAN() in SAS 9.4 M6.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;The output for the variable FILE_ID seems to be correct while the values for FILE_ID_X are incorrect.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
length file_id $ 10;  
infile datalines length = reclen; 
input string $varying32767. reclen;
position  = prxmatch('m/"HC-\w+/i',string); 
position2 = prxmatch('m/[HC]-\w+ /i',string); 
	if position ^= 0 then do;
	    file_id = scan(string, 2, '"');
		file_id_x = scan(string, 2, '&amp;gt;');
	   output;
	end;
datalines;
&amp;lt;option value="HC-220A"&amp;gt;MEPS HC-220A: 2020 Prescribed Medicines File&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-224"&amp;gt;MEPS HC-219: 2020 Full Year Population Characteristics File&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-010I"&amp;gt;HC-010I Appendix to MEPS 1996 Event Files&amp;lt;/option&amp;gt;
;
run;

options nocenter ls=132;
options obs=max;
proc print data=test;
var file_id: ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;The current PROC PRINT output:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;O&lt;FONT size="2"&gt;bs file_id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; file_id_x&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;1&amp;nbsp; &amp;nbsp; HC-220A&amp;nbsp; &amp;nbsp; &amp;nbsp; MEPS HC-220A: 2020 Prescribed Medicines File&amp;lt;/option&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2&amp;nbsp; &amp;nbsp; HC-224&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MEPS HC-219: 2020 Full Year Population Characteristics File&amp;lt;/option&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3&amp;nbsp; &amp;nbsp; HC-010I&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HC-010I Appendix to MEPS 1996 Event Files&amp;lt;/option&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;The desired PROC PRINT output:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;O&lt;FONT size="2"&gt;bs file_id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; file_id_x&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;1&amp;nbsp; &amp;nbsp; HC-220A&amp;nbsp; &amp;nbsp; &amp;nbsp; HC-220A&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;2&amp;nbsp; &amp;nbsp; HC-224&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HC-219&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;3&amp;nbsp; &amp;nbsp; HC-010I&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HC-010I&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Question: What changes would I make to the program to get the desired output for FILE_ID_X?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Any help would be appreciated.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 04:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873109#M43187</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-05-01T04:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variables using PRXMATCH() and SCAN()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873111#M43188</link>
      <description>&lt;P&gt;File_id_x is created and shows the values I would expect given the code and values that you show.&lt;/P&gt;
&lt;P&gt;This says that SCAN is supposed to only consider the &amp;gt; character as a delimiter.&lt;/P&gt;
&lt;PRE&gt;file_id_x = scan(string, 2, '&amp;gt;');&lt;/PRE&gt;
&lt;P&gt;In your first value&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;&amp;lt;option value="HC-220A"&amp;gt;MEPS HC-220A: 2020 Prescribed Medicines File&amp;lt;/option&amp;gt;
                       ^First delimiter                                     ^Second delimiter&lt;/LI-CODE&gt;
&lt;P&gt;So given that code the result should be&lt;/P&gt;
&lt;PRE&gt;MEPS HC-220A: 2020 Prescribed Medicines File&amp;lt;/option&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF the value you want always starts with HC- , which is implied by your examples but not stated I might look for the position of the start of second (are there always 2) HC- and then get the rest of the value. But I am not sure that you have provided a clear enough rule for determining what you are actually looking for&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 06:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873111#M43188</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-05-01T06:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variables using PRXMATCH() and SCAN()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873113#M43189</link>
      <description>&lt;P&gt;Kind of elementary, but should do if it's just first three lines. I also don't understand why you've used regex:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
length file_id $ 10;  
infile datalines length = reclen; 
input string $varying32767. reclen;
/*position  = prxmatch('m/"HC-\w+/i',string); */
/*position2 = prxmatch('m/&amp;gt;PSHC-\w+ /i',string); */
/*	if position ^= 0 then do;*/
	    file_id = scan(string, 2, '"');
		file_id_x = scan(string, 2, '&amp;gt;');
		if file_id_x =: "ME" then file_id_x = substr(file_id_x,6,7);
		else if file_id_x =: "H" then file_id_x = substr(file_id_x,1,7);
	   output;
	   drop string;

datalines;
&amp;lt;option value="HC-220A"&amp;gt;MEPS HC-220A: 2020 Prescribed Medicines File&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-224"&amp;gt;MEPS HC-219: 2020 Full Year Population Characteristics File&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-010I"&amp;gt;HC-010I Appendix to MEPS 1996 Event Files&amp;lt;/option&amp;gt;
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 May 2023 07:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873113#M43189</guid>
      <dc:creator>qoit</dc:creator>
      <dc:date>2023-05-01T07:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variables using PRXMATCH() and SCAN()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873227#M43191</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;Thanks to Qoit and Ballardw.&amp;nbsp; I revised the solution suggested by Qoit to accommodate additional scenarios (the last two records) from the data.&amp;nbsp; My code revisions include the LENGTH() in the third argument of the SUBSTR(). Any other solutions (e.g., regex) are welcome.&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
length file_id $ 10;  
infile datalines length = reclen; 
input string $varying32767. reclen;
position  = prxmatch('m/"HC-\w+/i',string);
	if position ^= 0 then do;
	    file_id = scan(string, 2, '"');
		file_id_x = scan(string, 2, '&amp;gt;');
		if file_id_x =: "ME" then file_id_x = substr(file_id_x,6,LENGTH(file_id));
		else if file_id_x =: "H" then file_id_x = substr(file_id_x,1,LENGTH(file_id));
	 output;
	end;
datalines;
&amp;lt;option value="HC-220A"&amp;gt;MEPS HC-220A: 2020 Prescribed Medicines File&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-224"&amp;gt;MEPS HC-219: 2020 Full Year Population Characteristics File&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-010I"&amp;gt;HC-010I Appendix to MEPS 1996 Event Files&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-036BRR"&amp;gt;MEPS HC-036BRR: MEPS 1996-2020 Replicate File for BRR Variance Estimation&amp;lt;/option&amp;gt;
&amp;lt;td width="76" height="0"&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;label for="datatype2"&amp;gt;&amp;lt;span class="small"&amp;gt;File type:&amp;lt;/label&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;
;
run;
proc print data=test;
var file_id file_id_x;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Obs&amp;nbsp; file_id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;file_id_x&lt;/P&gt;
&lt;PRE&gt;1  HC-220A&amp;nbsp; &amp;nbsp;  &amp;nbsp; &amp;nbsp;HC-220A&lt;BR /&gt;2  HC-224&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HC-219&lt;BR /&gt;3  HC-010I&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HC-010I&lt;BR /&gt;4  HC-036BRR     HC-036BRR&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;1 HC-220A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HC-220A&lt;BR /&gt;2 HC-224&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HC-219&lt;BR /&gt;3 HC-010I&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HC-010I&lt;BR /&gt;4 HC-036BRR HC-036BRR&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 18:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873227#M43191</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-05-01T18:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variables using PRXMATCH() and SCAN()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873230#M43194</link>
      <description>&lt;P&gt;How about replacing the following two statements&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;position  = prxmatch('m/"HC-\w+/i',string);
	if position ^= 0 then do;&lt;/LI-CODE&gt;
&lt;P&gt;with this statement below?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if find(string,'HC-')&amp;gt;0 then do;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 18:46:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873230#M43194</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-05-01T18:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variables using PRXMATCH() and SCAN()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873247#M43197</link>
      <description>&lt;P&gt;Using regex functions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
length file_id file_id_x $ 10; 
infile datalines truncover; 
input string $32767.;
if not id then id + prxParse('|value="(HC-\w+)".*(HC-\w+).*&amp;lt;/option&amp;gt;|i');
if prxmatch(id, string) then do;
    file_id = prxPosn(id, 1, string);
    file_id_x = prxPosn(id, 2, string);
    output;
    end;
datalines;
&amp;lt;option value="HC-220A"&amp;gt;MEPS HC-220A: 2020 Prescribed Medicines File&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-224"&amp;gt;MEPS HC-219: 2020 Full Year Population Characteristics File&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-010I"&amp;gt;HC-010I Appendix to MEPS 1996 Event Files&amp;lt;/option&amp;gt;
&amp;lt;option value="HC-036BRR"&amp;gt;MEPS HC-036BRR: MEPS 1996-2020 Replicate File for BRR Variance Estimation&amp;lt;/option&amp;gt;
&amp;lt;td width="76" height="0"&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;label for="datatype2"&amp;gt;&amp;lt;span class="small"&amp;gt;File type:&amp;lt;/label&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/td&amp;gt;
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;prxPosn&lt;/STRONG&gt; returns the substring from the nth &lt;EM&gt;capture buffer&lt;/EM&gt;. &lt;EM&gt;A capture buffer is part of a match, enclosed in parentheses, that is specified in a regular expression.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The matching pattern could be made more (or less) stringent, according to your needs.&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 19:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873247#M43197</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2023-05-01T19:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variables using PRXMATCH() and SCAN()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873271#M43199</link>
      <description>&lt;P&gt;Thanks to PGStat! This is certainly an interesting solution.&lt;/P&gt;
&lt;P&gt;Could you please explain the code below if possible?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if not id then id + prxParse('|value="(HC-\w+)".*(HC-\w+).*&amp;lt;/option&amp;gt;|i');
if prxmatch(id, string) then do;
    file_id = prxPosn(id, 1, string);
    file_id_x = prxPosn(id, 2, string);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 May 2023 20:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873271#M43199</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-05-01T20:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variables using PRXMATCH() and SCAN()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873453#M43216</link>
      <description>&lt;P&gt;I'll explain the first bit, since it is a bit tricky. The rest is well explained in SAS documentation for the PRX functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if not id then id + prxParse('...');&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This statement parses the regex pattern only once. Initially the variable &lt;STRONG&gt;id&lt;/STRONG&gt; is missing, so the test &lt;STRONG&gt;if not id&lt;/STRONG&gt; is true and the &lt;EM&gt;sum statement&lt;/EM&gt; &lt;STRONG&gt;id + prxParse('...')&lt;/STRONG&gt; is run, which gives a value to variable &lt;STRONG&gt;id&lt;/STRONG&gt;. This value is retained for next iterations because variable &lt;STRONG&gt;id&lt;/STRONG&gt; was on the left side of a sum statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This statement is equivalent to :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;retain id;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if _n_ = 1 then id = prxParse('...');&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 18:23:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873453#M43216</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2023-05-02T18:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating variables using PRXMATCH() and SCAN()</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873455#M43217</link>
      <description>&lt;P&gt;Thank you so much for explaining the code.&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 18:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Creating-variables-using-PRXMATCH-and-SCAN/m-p/873455#M43217</guid>
      <dc:creator>pkm_edu</dc:creator>
      <dc:date>2023-05-02T18:28:09Z</dc:date>
    </item>
  </channel>
</rss>

