<?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 : first postion in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function-first-postion/m-p/877093#M346492</link>
    <description>Thank you! That works!</description>
    <pubDate>Tue, 23 May 2023 15:16:57 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2023-05-23T15:16:57Z</dc:date>
    <item>
      <title>Prxmatch function : first postion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function-first-postion/m-p/876916#M346416</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My data in column&amp;nbsp;&lt;CODE class=" language-sas"&gt;CODE_P &lt;/CODE&gt;is :&lt;/P&gt;
&lt;P&gt;Z56&lt;/P&gt;
&lt;P&gt;Z98&lt;/P&gt;
&lt;P&gt;Z9&lt;/P&gt;
&lt;P&gt;B1&lt;/P&gt;
&lt;P&gt;JK.&lt;/P&gt;
&lt;P&gt;I would like to have only the data with Z. How to write this condition with&amp;nbsp;Prxmatch function please (to hold all data starting with Z) ?&lt;/P&gt;
&lt;P&gt;My actual code is :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	if prxmatch("m/Z/oi",CODE_P)&amp;gt;0 then do;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This code works well, but I would like to add the condition "on first position". Thank you !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 15:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function-first-postion/m-p/876916#M346416</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2023-05-22T15:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch function : first postion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function-first-postion/m-p/876919#M346419</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286185"&gt;@SASdevAnneMarie&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Insert the "^" sign before the "Z":&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4"&gt;if prxmatch("m/&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;^&lt;/STRONG&gt;&lt;/FONT&gt;Z/oi",CODE_P)&amp;gt;0 then do;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But for a simple criterion like this I would rather avoid the slow PRX functions and use something like&lt;/P&gt;
&lt;PRE&gt;&lt;FONT size="4"&gt;if &lt;STRONG&gt;upcase(code_p)=:'Z'&lt;/STRONG&gt; then do;&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 May 2023 15:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function-first-postion/m-p/876919#M346419</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-05-22T15:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch function : first postion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function-first-postion/m-p/877093#M346492</link>
      <description>Thank you! That works!</description>
      <pubDate>Tue, 23 May 2023 15:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-function-first-postion/m-p/877093#M346492</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2023-05-23T15:16:57Z</dc:date>
    </item>
  </channel>
</rss>

