<?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: If then-else with prxmatch in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329350#M73674</link>
    <description>&lt;P&gt;These are the modifier which work in 9.1,&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/base/datastep/perl_regexp/regexp-tip-sheet.pdf" target="_blank"&gt;https://support.sas.com/rnd/base/datastep/perl_regexp/regexp-tip-sheet.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sorry, 9.0 is so antiquated they had to have documentatioon on stone tablets. &amp;nbsp;Seriously, upgrade there is no benefit to staying on an old version.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2017 10:13:02 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-02-02T10:13:02Z</dc:date>
    <item>
      <title>If then-else with prxmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329329#M73662</link>
      <description>&lt;PRE&gt;data work.systems;                                                                                                                      
set work.carsales;                                                                                                                      
if prxmatch('m/Acura|Dodge|Ford/oi',Manufacturer) &amp;gt; 0  then found=1;                                                                    
else found=0;                                                                                                                           
run; &lt;/PRE&gt;&lt;P&gt;I've tried to run above code and in result I got a new dataset with found=0 only... as I want to do pattern matching so prxmatch should be there..&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks:)&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 09:30:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329329#M73662</guid>
      <dc:creator>bits</dc:creator>
      <dc:date>2017-02-02T09:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: If then-else with prxmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329336#M73665</link>
      <description>&lt;P&gt;Post test data in the form of a datastep, we can't see your data!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 09:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329336#M73665</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-02T09:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: If then-else with prxmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329338#M73666</link>
      <description>&lt;P&gt;I don't have access to your source data, but when I run&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.systems;
set sashelp.cars;
if prxmatch('m/Acura|Quattro|Ford/oi',model) &amp;gt; 0
   then found=1;
   else found=0;
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;it works fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to get fast accurrate solutions, posting the data you're using is recommended. It's fortunate there's a similar dataset in&amp;nbsp;&lt;EM&gt;sashelp&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 09:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329338#M73666</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-02-02T09:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: If then-else with prxmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329347#M73671</link>
      <description>&lt;P&gt;hey thanks for reply...actually im using bit old sas version i.e SAS 9.0... so does this makes any impact while running the code?&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17429"&gt;@LaurieF&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 10:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329347#M73671</guid>
      <dc:creator>bits</dc:creator>
      <dc:date>2017-02-02T10:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: If then-else with prxmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329348#M73672</link>
      <description>I can't tell. It should work. But as I said, let's see your data and we'll find out. &lt;BR /&gt;</description>
      <pubDate>Thu, 02 Feb 2017 10:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329348#M73672</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-02-02T10:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: If then-else with prxmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329350#M73674</link>
      <description>&lt;P&gt;These are the modifier which work in 9.1,&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/base/datastep/perl_regexp/regexp-tip-sheet.pdf" target="_blank"&gt;https://support.sas.com/rnd/base/datastep/perl_regexp/regexp-tip-sheet.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Sorry, 9.0 is so antiquated they had to have documentatioon on stone tablets. &amp;nbsp;Seriously, upgrade there is no benefit to staying on an old version.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 10:13:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329350#M73674</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-02T10:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: If then-else with prxmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329351#M73675</link>
      <description>&lt;P&gt;here is the dataset which im using for this code&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/17429"&gt;@LaurieF&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 10:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329351#M73675</guid>
      <dc:creator>bits</dc:creator>
      <dc:date>2017-02-02T10:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: If then-else with prxmatch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329530#M73734</link>
      <description>&lt;P&gt;I'm with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;- upgrade, if you're in the position to do it. If you can't, stick with multiple&amp;nbsp;&lt;EM&gt;index&lt;/EM&gt; or&amp;nbsp;&lt;EM&gt;indexw&lt;/EM&gt; calls, which&amp;nbsp;&lt;EM&gt;will&lt;/EM&gt; work fine.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2017 18:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-then-else-with-prxmatch/m-p/329530#M73734</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-02-02T18:54:57Z</dc:date>
    </item>
  </channel>
</rss>

