<?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: How do you write a wrapper for PRXMATCH for FEDSQL? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-write-a-wrapper-for-PRXMATCH-for-FEDSQL/m-p/471196#M120670</link>
    <description>&lt;P&gt;Anyone?&amp;nbsp; Would truly love to use this feature but cannot unless I have full PRXMATCH functionality.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 18:54:30 GMT</pubDate>
    <dc:creator>tomcmacdonald</dc:creator>
    <dc:date>2018-06-18T18:54:30Z</dc:date>
    <item>
      <title>How do you write a wrapper for PRXMATCH for FEDSQL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-write-a-wrapper-for-PRXMATCH-for-FEDSQL/m-p/471178#M120659</link>
      <description>&lt;P&gt;I can't get past this seemingly trivial exercise.&amp;nbsp; I would like to take advantage of all that PROC FEDSQL has to offer but simply cannot get consistent use of a PROC DS2 package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC DS2;
	package regexp / overwrite=yes;
		method match( varchar(1024) pattern, varchar(1024) string ) returns integer;
			return prxmatch(pattern, string);
		end;
	run;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems to yield the cryptic and not very useful error message of&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR: Access Violation occurred during PREPARE!&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When trying to use it here for instance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FEDSQL;
	INSERT INTO tableB
	SELECT id 
	FROM tableA
	WHERE 
		regexp.match('/.*/', id) = 1 
		AND regexp.match('/^[5-9]/', id) = 0;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Like are these PROC DS2 packages simply broken when used with PROC FEDSQL and I should just wait until 9.5 to come out when SAS has hopefully fixed all the bugs?&amp;nbsp; Is this thing just inherently buggy?&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>Mon, 18 Jun 2018 17:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-write-a-wrapper-for-PRXMATCH-for-FEDSQL/m-p/471178#M120659</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2018-06-18T17:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do you write a wrapper for PRXMATCH for FEDSQL?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-you-write-a-wrapper-for-PRXMATCH-for-FEDSQL/m-p/471196#M120670</link>
      <description>&lt;P&gt;Anyone?&amp;nbsp; Would truly love to use this feature but cannot unless I have full PRXMATCH functionality.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 18:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-you-write-a-wrapper-for-PRXMATCH-for-FEDSQL/m-p/471196#M120670</guid>
      <dc:creator>tomcmacdonald</dc:creator>
      <dc:date>2018-06-18T18:54:30Z</dc:date>
    </item>
  </channel>
</rss>

