<?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 Can I recover my SAS Windows session? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-I-recover-my-SAS-Windows-session/m-p/52894#M11194</link>
    <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
I made a mistake, and now I can't submit anything.  Here is my log from where I made the error:&lt;BR /&gt;
&lt;BR /&gt;
2750  %let    pctsign1    =   %str(%%)    ;&lt;BR /&gt;
2751  %put    pctsign1    =   &amp;amp;pctsign1.  ;&lt;BR /&gt;
pctsign1    =   %&lt;BR /&gt;
2752&lt;BR /&gt;
2753  %let    pctsign2    =   %nrstr(%)   ;&lt;BR /&gt;
2754  %put    pctsign2    =   &amp;amp;pctsign2.  ;&lt;BR /&gt;
2755&lt;BR /&gt;
2756  %let    pctsign2    =   %nrstr(%%)  ;&lt;BR /&gt;
2757  %put    pctsign2    =   &amp;amp;pctsign2.  ;&lt;BR /&gt;
2758  ;&lt;BR /&gt;
2759  %put    pctsign1    =   &amp;amp;pctsign1.  ;&lt;BR /&gt;
2760  run ;&lt;BR /&gt;
2761  %put    pctsign1    =   &amp;amp;pctsign1.  ;&lt;BR /&gt;
2762  %put    pctsign1    =   &amp;amp;pctsign1.  ;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Line 2753 was where I made the fatal mistake.  I wanted to see whether %nrstr(%) would mask % as indicated in the online documentation.  After that, nothing worked.  For the next few submissions, the submitted statements would print to the log, but after line 2762, not even the log would register my submissions.  Is there any way to get this session working again, or do I have to shut down SAS and restart it?  I even tried the magic string to overcome open code recursion:&lt;BR /&gt;
&lt;BR /&gt;
*'; *"; *); */; %mend; run;&lt;BR /&gt;
&lt;BR /&gt;
but that didn't produce any response.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
--  TMK  --&lt;BR /&gt;
"The Macro Klutz"</description>
    <pubDate>Tue, 20 Jul 2010 02:58:47 GMT</pubDate>
    <dc:creator>topkatz</dc:creator>
    <dc:date>2010-07-20T02:58:47Z</dc:date>
    <item>
      <title>Can I recover my SAS Windows session?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-recover-my-SAS-Windows-session/m-p/52894#M11194</link>
      <description>Hi.&lt;BR /&gt;
&lt;BR /&gt;
I made a mistake, and now I can't submit anything.  Here is my log from where I made the error:&lt;BR /&gt;
&lt;BR /&gt;
2750  %let    pctsign1    =   %str(%%)    ;&lt;BR /&gt;
2751  %put    pctsign1    =   &amp;amp;pctsign1.  ;&lt;BR /&gt;
pctsign1    =   %&lt;BR /&gt;
2752&lt;BR /&gt;
2753  %let    pctsign2    =   %nrstr(%)   ;&lt;BR /&gt;
2754  %put    pctsign2    =   &amp;amp;pctsign2.  ;&lt;BR /&gt;
2755&lt;BR /&gt;
2756  %let    pctsign2    =   %nrstr(%%)  ;&lt;BR /&gt;
2757  %put    pctsign2    =   &amp;amp;pctsign2.  ;&lt;BR /&gt;
2758  ;&lt;BR /&gt;
2759  %put    pctsign1    =   &amp;amp;pctsign1.  ;&lt;BR /&gt;
2760  run ;&lt;BR /&gt;
2761  %put    pctsign1    =   &amp;amp;pctsign1.  ;&lt;BR /&gt;
2762  %put    pctsign1    =   &amp;amp;pctsign1.  ;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Line 2753 was where I made the fatal mistake.  I wanted to see whether %nrstr(%) would mask % as indicated in the online documentation.  After that, nothing worked.  For the next few submissions, the submitted statements would print to the log, but after line 2762, not even the log would register my submissions.  Is there any way to get this session working again, or do I have to shut down SAS and restart it?  I even tried the magic string to overcome open code recursion:&lt;BR /&gt;
&lt;BR /&gt;
*'; *"; *); */; %mend; run;&lt;BR /&gt;
&lt;BR /&gt;
but that didn't produce any response.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
--  TMK  --&lt;BR /&gt;
"The Macro Klutz"</description>
      <pubDate>Tue, 20 Jul 2010 02:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-recover-my-SAS-Windows-session/m-p/52894#M11194</guid>
      <dc:creator>topkatz</dc:creator>
      <dc:date>2010-07-20T02:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can I recover my SAS Windows session?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-recover-my-SAS-Windows-session/m-p/52895#M11195</link>
      <description>The macro facility has a bit of trouble recovering from missing close parentheses like you specified in the %NRSTR function.  The problem was actually aggrivated by the use of the 'magic string'  If you had only specified the close parenthesis you would have been ok.  &lt;BR /&gt;
&lt;BR /&gt;
At this point you probably also have some mismatched quotes inside of a %NRSTR function.  You may still be able to undo your quotes so that you can close the function.  If it is worth it.</description>
      <pubDate>Tue, 20 Jul 2010 04:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-recover-my-SAS-Windows-session/m-p/52895#M11195</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-07-20T04:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can I recover my SAS Windows session?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-recover-my-SAS-Windows-session/m-p/52896#M11196</link>
      <description>Thank you for the response, Art.&lt;BR /&gt;
&lt;BR /&gt;
Ah, I guess that in  "%nrstr(%);"  the "%" thinks that it is modifying the ")" rather than standing alone, so the %nrstr function has not been properly closed.  Okay.  I actually closed my SAS session window and restarted SAS, because I had to move on, but at least I have a clue about what went wrong.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
--  TMK  --</description>
      <pubDate>Tue, 20 Jul 2010 14:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-recover-my-SAS-Windows-session/m-p/52896#M11196</guid>
      <dc:creator>topkatz</dc:creator>
      <dc:date>2010-07-20T14:22:33Z</dc:date>
    </item>
  </channel>
</rss>

