<?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 Matching unbalanced quotes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Matching-unbalanced-quotes/m-p/69491#M15069</link>
    <description>At one time I used to know a string of characters that you could submit that would match any unbalanced quotes and or comments in code that was submitted and needed the matching quote to stop running.  It was something like */*'/*"/*/;run;&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know what it is?  Thanks.</description>
    <pubDate>Thu, 02 Sep 2010 21:10:46 GMT</pubDate>
    <dc:creator>JamesD</dc:creator>
    <dc:date>2010-09-02T21:10:46Z</dc:date>
    <item>
      <title>Matching unbalanced quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matching-unbalanced-quotes/m-p/69491#M15069</link>
      <description>At one time I used to know a string of characters that you could submit that would match any unbalanced quotes and or comments in code that was submitted and needed the matching quote to stop running.  It was something like */*'/*"/*/;run;&lt;BR /&gt;
&lt;BR /&gt;
Does anyone know what it is?  Thanks.</description>
      <pubDate>Thu, 02 Sep 2010 21:10:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matching-unbalanced-quotes/m-p/69491#M15069</guid>
      <dc:creator>JamesD</dc:creator>
      <dc:date>2010-09-02T21:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Matching unbalanced quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matching-unbalanced-quotes/m-p/69492#M15070</link>
      <description>Hi:&lt;BR /&gt;
  The one I use is:&lt;BR /&gt;
*'; *"; stop; run; quit; %mend;&lt;BR /&gt;
&lt;BR /&gt;
which is a variation of the string recommended on page 15 of this document:&lt;BR /&gt;
&lt;A href="http://support.sas.com/publishing/pubcat/chaps/61025.pdf" target="_blank"&gt;http://support.sas.com/publishing/pubcat/chaps/61025.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I keep submitting it over and over until I see this message in the log, because, as it says on page 15:&lt;BR /&gt;
"Depending on how deep a hole you have dug for yourself, you might need to run this line several times. You’ll know you’re done when you see an error message that says “No matching %MACRO statement for this %MEND statement.” The line works on unbalanced quotes because anything between an asterisk and the next semicolon is treated as a comment by SAS, unless there is an open quote, in which case it is just part of the quote. For example, *”; will close a double quote if one is open, but will not start a new quote."&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 02 Sep 2010 22:15:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matching-unbalanced-quotes/m-p/69492#M15070</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-02T22:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Matching unbalanced quotes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matching-unbalanced-quotes/m-p/69493#M15071</link>
      <description>Thanks!  That's exactly what I was looking for, but better.</description>
      <pubDate>Thu, 02 Sep 2010 22:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matching-unbalanced-quotes/m-p/69493#M15071</guid>
      <dc:creator>JamesD</dc:creator>
      <dc:date>2010-09-02T22:58:43Z</dc:date>
    </item>
  </channel>
</rss>

