<?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 Prxmatch and reaching the 262 limit in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318621#M313365</link>
    <description>&lt;P&gt;I have to flag for a list of medications in a character variable which contains user entered free form text. The variable is the question "what prescription medications are you taking".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of opioids that I need to flag for but when I do my prxmatch I get the error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;" The quoted string currently being processed has become more than 262 characters long"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My list of opioids are very long, probably about 40 meds and I don't know how to get around this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I was using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data opioid_analysis;
	set medeval.opioid;

/*Opiod Flagging*/

	if prxmatch("m/Butrans|Codeine|Dalmacol|Demerol\/pethidine|Dilaudid|Dimetapp-C|Dimethane|Duragesic|Hycodan|Hydromorph Contin|Kadian|Lenoltec|Methadone|Methoxacet/oi", MED_REC_PMED1)&amp;gt; 0 then opioid = 1;
	else opioid=0;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I keep adding medications I get the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2016 16:29:41 GMT</pubDate>
    <dc:creator>confused_saser</dc:creator>
    <dc:date>2016-12-13T16:29:41Z</dc:date>
    <item>
      <title>Prxmatch and reaching the 262 limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318621#M313365</link>
      <description>&lt;P&gt;I have to flag for a list of medications in a character variable which contains user entered free form text. The variable is the question "what prescription medications are you taking".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of opioids that I need to flag for but when I do my prxmatch I get the error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;" The quoted string currently being processed has become more than 262 characters long"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My list of opioids are very long, probably about 40 meds and I don't know how to get around this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I was using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data opioid_analysis;
	set medeval.opioid;

/*Opiod Flagging*/

	if prxmatch("m/Butrans|Codeine|Dalmacol|Demerol\/pethidine|Dilaudid|Dimetapp-C|Dimethane|Duragesic|Hycodan|Hydromorph Contin|Kadian|Lenoltec|Methadone|Methoxacet/oi", MED_REC_PMED1)&amp;gt; 0 then opioid = 1;
	else opioid=0;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I keep adding medications I get the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 16:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318621#M313365</guid>
      <dc:creator>confused_saser</dc:creator>
      <dc:date>2016-12-13T16:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch and reaching the 262 limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318631#M313366</link>
      <description>&lt;P&gt;I think I figured it out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added the&amp;nbsp;options noquotelenmax; before my datastep and it seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;options noquotelenmax;
data opioid_analysis;
	set medeval.opioid;

/*Opiod Flagging*/

	if prxmatch("m/Butrans|Codeine|Dalmacol|Demerol\/pethidine|Dilaudid|Dimetapp-C|Dimethane|Duragesic|Hycodan|Hydromorph Contin|Kadian|Lenoltec|Methadone|Methoxacet|Methoxisal C1\/8|Methoxisal C1|MS contin|Novahistex DH|Novahistine DH|Nucynta|Oxycontin|OXY-IR|OxyNEO|Percocet/oi", MED_REC_PMED1)&amp;gt; 0 then opioid = 1;
	else opioid=0;
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't see any problems with this if anyone else can comment?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does sas bother putting a limit on strings?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 16:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318631#M313366</guid>
      <dc:creator>confused_saser</dc:creator>
      <dc:date>2016-12-13T16:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch and reaching the 262 limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318660#M313367</link>
      <description>&lt;P&gt;The "limit" is much longer. What you received was &lt;STRONG&gt;not an error&lt;/STRONG&gt;. It was a warning. Some times people forget to close a quoted string properly such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If x ='some text;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;= Not missing '&lt;/P&gt;
&lt;P&gt;And more code goes here, several lines for over 250 some characters;&lt;/P&gt;
&lt;P&gt;Variable = 'Another string';&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the first assignment doesn't end until the ' before "Another".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The warning reminds you to check for something like that. The specific semi-example I provided would generate other errors but you can't be sure it will all the time.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 18:10:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318660#M313367</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-13T18:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch and reaching the 262 limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318694#M313368</link>
      <description>&lt;P&gt;Oh that is so weird.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't change my code at all but just added the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;options noquotelenmax;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;And my code works after having added that!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 20:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318694#M313368</guid>
      <dc:creator>confused_saser</dc:creator>
      <dc:date>2016-12-13T20:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Prxmatch and reaching the 262 limit</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318702#M313369</link>
      <description>&lt;P&gt;Your code works regardless of the log warning and as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;states the log message is a warning only and the option allows you to switch it off. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 21:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxmatch-and-reaching-the-262-limit/m-p/318702#M313369</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-12-13T21:33:22Z</dc:date>
    </item>
  </channel>
</rss>

