<?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 error? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-error/m-p/370600#M275784</link>
    <description>&lt;P&gt;Post logs with error messages into a code box. The forum icon {i} will open a box that will treat the text pasted a simple text and is not reformatted by the forumn as the example you pasted in the main message window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is somewhat important as all of the underscore&amp;nbsp;characters&amp;nbsp;indicate where SAS encountered the error condtion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when we see&lt;/P&gt;
&lt;P&gt;194 else if prxmatch("m/If_Not|Carol/i",name) &amp;gt; 0 then found=5;&lt;/P&gt;
&lt;P&gt;-------------------------&lt;/P&gt;
&lt;P&gt;388&lt;/P&gt;
&lt;P&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/P&gt;
&lt;P&gt;we do not know if the issue is with a "if prxmatch" paranthese, the &amp;gt; 0 or something else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2017 14:21:22 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-06-26T14:21:22Z</dc:date>
    <item>
      <title>Prxmatch error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-error/m-p/370546#M275782</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got an error from the program below, how to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; datain;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; name $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;500.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; name &amp;amp;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cards&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;John__If_True_kary&lt;/P&gt;&lt;P&gt;John_If_True__Mary&lt;/P&gt;&lt;P&gt;John__If_True1_kary&lt;/P&gt;&lt;P&gt;John_If_True_kary&lt;/P&gt;&lt;P&gt;Tom__If_Not__Carol&lt;/P&gt;&lt;P&gt;Tom__If_Not_Carol&lt;/P&gt;&lt;P&gt;Tom_If_Not1_Carol&lt;/P&gt;&lt;P&gt;Joe__If_True___Jane&lt;/P&gt;&lt;P&gt;Joe__If_False_Jane&lt;/P&gt;&lt;P&gt;Joe__If_False__Paul1&lt;/P&gt;&lt;P&gt;Joe__If_False___Jane&lt;/P&gt;&lt;P&gt;Paul_If_False2__Jane&lt;/P&gt;&lt;P&gt;Joe__If_False2___Jane&lt;/P&gt;&lt;P&gt;Joe___If_False__Jane&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; dataout;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; datain;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; prxmatch(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"m/If_True|mary/i"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,name) &amp;gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; found=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; prxmatch(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"m/If_True|kary/i"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,name) &amp;gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; found=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; prxmatch(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"m/If_False|Jane/i"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,name) &amp;gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; found=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; prxmatch(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"m/If_False|paul/i"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,name) &amp;gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; found=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; prxmatch(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"m/If_Not|Carol/i"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,name) &amp;gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; found=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;5&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;else&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; found=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;198 data datain;&lt;/P&gt;&lt;P&gt;199 format name $500.;&lt;/P&gt;&lt;P&gt;200 input name &amp;amp;;&lt;/P&gt;&lt;P&gt;201 cards;&lt;/P&gt;&lt;P&gt;202 John__If_True_kary&lt;/P&gt;&lt;P&gt;203 John_If_True__Mary&lt;/P&gt;&lt;P&gt;204 John__If_True1_kary&lt;/P&gt;&lt;P&gt;205 John_If_True_kary&lt;/P&gt;&lt;P&gt;206 Tom__If_Not__Carol&lt;/P&gt;&lt;P&gt;WARNING: The quoted string currently being processed has become more than 262 characters long. You&lt;/P&gt;&lt;P&gt;might have unbalanced quotation marks.&lt;/P&gt;&lt;P&gt;207 Tom__If_Not_Carol&lt;/P&gt;&lt;P&gt;208 Tom_If_Not1_Carol&lt;/P&gt;&lt;P&gt;209 Joe__If_True___Jane&lt;/P&gt;&lt;P&gt;210 Joe__If_False_Jane&lt;/P&gt;&lt;P&gt;211 Joe__If_False__Paul1&lt;/P&gt;&lt;P&gt;212 Joe__If_False___Jane&lt;/P&gt;&lt;P&gt;213 Paul_If_False2__Jane&lt;/P&gt;&lt;P&gt;214 Joe__If_False2___Jane&lt;/P&gt;&lt;P&gt;215 Joe___If_False__Jane&lt;/P&gt;&lt;P&gt;216 ;&lt;/P&gt;&lt;P&gt;217 run;&lt;/P&gt;&lt;P&gt;218 data datain;&lt;/P&gt;&lt;P&gt;219 format name $ 500.;&lt;/P&gt;&lt;P&gt;220 input name &amp;amp;;&lt;/P&gt;&lt;P&gt;221 cards;&lt;/P&gt;&lt;P&gt;222 John__If_True_kary&lt;/P&gt;&lt;P&gt;223 John_If_True__Mary&lt;/P&gt;&lt;P&gt;224 John__If_True1_kary&lt;/P&gt;&lt;P&gt;225 John_If_True_kary&lt;/P&gt;&lt;P&gt;226 Tom__If_Not__Carol&lt;/P&gt;&lt;P&gt;227 Tom__If_Not_Carol&lt;/P&gt;&lt;P&gt;228 Tom_If_Not1_Carol&lt;/P&gt;&lt;P&gt;229 Joe__If_True___Jane&lt;/P&gt;&lt;P&gt;230 Joe__If_False_Jane&lt;/P&gt;&lt;P&gt;231 Joe__If_False__Paul1&lt;/P&gt;&lt;P&gt;232 Joe__If_False___Jane&lt;/P&gt;&lt;P&gt;233 Paul_If_False2__Jane&lt;/P&gt;&lt;P&gt;234 Joe__If_False2___Jane&lt;/P&gt;&lt;P&gt;235 Joe___If_False__Jane&lt;/P&gt;&lt;P&gt;236 ;&lt;/P&gt;&lt;P&gt;237 run;&lt;/P&gt;&lt;P&gt;194 else if prxmatch("m/If_Not|Carol/i",name) &amp;gt; 0 then found=5;&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;49&lt;/P&gt;&lt;P&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.&lt;/P&gt;&lt;P&gt;Inserting white space between a quoted string and the succeeding identifier is&lt;/P&gt;&lt;P&gt;recommended.&lt;/P&gt;&lt;P&gt;194 else if prxmatch("m/If_Not|Carol/i",name) &amp;gt; 0 then found=5;&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;388&lt;/P&gt;&lt;P&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/P&gt;&lt;P&gt;194 else if prxmatch("m/If_Not|Carol/i",name) &amp;gt; 0 then found=5;&lt;/P&gt;&lt;P&gt;-------------------------&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;238 data dataout;&lt;/P&gt;&lt;P&gt;239 set datain;&lt;/P&gt;&lt;P&gt;240 if&lt;/P&gt;&lt;P&gt;240! prxmatch("m/If_True|mary/i"&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;49&lt;/P&gt;&lt;P&gt;388&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;240! ,name) &amp;gt; 0 then found=1;&lt;/P&gt;&lt;P&gt;241 else if&lt;/P&gt;&lt;P&gt;241! prxmatch("m/If_True|kary/i"&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;49&lt;/P&gt;&lt;P&gt;388&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;241! ,name) &amp;gt; 0 then found=2;&lt;/P&gt;&lt;P&gt;242 else if&lt;/P&gt;&lt;P&gt;242! prxmatch("m/If_False|Jane/i"&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;49&lt;/P&gt;&lt;P&gt;388&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;242! ,name) &amp;gt; 0 then found=3;&lt;/P&gt;&lt;P&gt;243 else if&lt;/P&gt;&lt;P&gt;243! prxmatch("m/If_False|paul/i"&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;49&lt;/P&gt;&lt;P&gt;388&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;243! ,name) &amp;gt; 0 then found=4;&lt;/P&gt;&lt;P&gt;NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release.&lt;/P&gt;&lt;P&gt;Inserting white space between a quoted string and the succeeding identifier is&lt;/P&gt;&lt;P&gt;recommended.&lt;/P&gt;&lt;P&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;244 else if prxmatch("m/If_Not|Carol/i",name) &amp;gt; 0 then found=5;&lt;/P&gt;&lt;P&gt;245 else found=0;&lt;/P&gt;&lt;P&gt;246 run;&lt;/P&gt;&lt;P&gt;247 quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-error/m-p/370546#M275782</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-06-26T13:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-error/m-p/370566#M275783</link>
      <description>&lt;P&gt;My guess is that your error is due to a mistake you made earlier during the session. Restart SAS, run the code again, and see if you still have the error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-error/m-p/370566#M275783</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-06-26T13:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch error?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-error/m-p/370600#M275784</link>
      <description>&lt;P&gt;Post logs with error messages into a code box. The forum icon {i} will open a box that will treat the text pasted a simple text and is not reformatted by the forumn as the example you pasted in the main message window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is somewhat important as all of the underscore&amp;nbsp;characters&amp;nbsp;indicate where SAS encountered the error condtion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when we see&lt;/P&gt;
&lt;P&gt;194 else if prxmatch("m/If_Not|Carol/i",name) &amp;gt; 0 then found=5;&lt;/P&gt;
&lt;P&gt;-------------------------&lt;/P&gt;
&lt;P&gt;388&lt;/P&gt;
&lt;P&gt;ERROR 388-185: Expecting an arithmetic operator.&lt;/P&gt;
&lt;P&gt;we do not know if the issue is with a "if prxmatch" paranthese, the &amp;gt; 0 or something else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 14:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-error/m-p/370600#M275784</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-06-26T14:21:22Z</dc:date>
    </item>
  </channel>
</rss>

