<?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 SAS/Connect endrsubmit ignored (tokenizer problem?) in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273612#M18985</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm playing on a new server, where they have EG configured to use rsubmits (basically rsubmit and endrsubmit are inserted as precode and postcode).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed that if I submit:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro doit(x=1);
  %put x=&amp;amp;x;
%mend doit;

%doit()
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;everything breaks.&amp;nbsp; Note there is no trailing semicolon on the macro call.&amp;nbsp; After EG adds the wrapper, in effect I am submitting:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rsubmit;
%macro doit(x=1);
  %put x=&amp;amp;x;
%mend doit;

%doit()

endrsubmit;&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;It looks to me like in that case, SAS is not seeing the endrsubmit statement.&amp;nbsp; If I add a semicolon after&amp;nbsp;%doit(), or even a /* */ comment, SAS will see the endrsubmit and everything works fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have other people seen this&amp;nbsp;behavior from&amp;nbsp;&amp;nbsp;SAS/Connect on EG?&amp;nbsp; Or PC SAS?&amp;nbsp; Curious if this is somehow an EG problem, or (more likely) a word scanner / tokenizer problem.&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2016 15:27:18 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2016-05-27T15:27:18Z</dc:date>
    <item>
      <title>SAS/Connect endrsubmit ignored (tokenizer problem?)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273612#M18985</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm playing on a new server, where they have EG configured to use rsubmits (basically rsubmit and endrsubmit are inserted as precode and postcode).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed that if I submit:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro doit(x=1);
  %put x=&amp;amp;x;
%mend doit;

%doit()
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;everything breaks.&amp;nbsp; Note there is no trailing semicolon on the macro call.&amp;nbsp; After EG adds the wrapper, in effect I am submitting:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;rsubmit;
%macro doit(x=1);
  %put x=&amp;amp;x;
%mend doit;

%doit()

endrsubmit;&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;It looks to me like in that case, SAS is not seeing the endrsubmit statement.&amp;nbsp; If I add a semicolon after&amp;nbsp;%doit(), or even a /* */ comment, SAS will see the endrsubmit and everything works fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have other people seen this&amp;nbsp;behavior from&amp;nbsp;&amp;nbsp;SAS/Connect on EG?&amp;nbsp; Or PC SAS?&amp;nbsp; Curious if this is somehow an EG problem, or (more likely) a word scanner / tokenizer problem.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 15:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273612#M18985</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2016-05-27T15:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Connect endrsubmit ignored (tokenizer problem?)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273623#M18987</link>
      <description>&lt;P&gt;You might be able to fix by adding the "quote killer" line at the start of your post-code option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;;*';*";*/;quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 15:41:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273623#M18987</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-05-27T15:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Connect endrsubmit ignored (tokenizer problem?)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273632#M18988</link>
      <description>&lt;P&gt;Thanks Chris.&amp;nbsp; Yes, just changing the post code from endrsubmit; to ;endrsubmit;&amp;nbsp; fixed the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mostly&amp;nbsp;was just&amp;nbsp;curious if this same problem would happen with PC/SAS (in which case it's really the tokenizer or something like that that is having the problem), or if&amp;nbsp;it is an &amp;nbsp;EG-only problem.&amp;nbsp; My guess is it would happen in PC/SAS too, but I don't have SAS/CONNECT on my PC SAS so can't test it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a side note, there have been times I thought it&amp;nbsp;would be nice if there was a way to turn off EG's generation of the quote killer.&amp;nbsp; I've had a few times when I had an unmatched quote, but because EG always adds the quote killer, it took me a minute or two longer than usual to figure out what was going on.&amp;nbsp; But that's a minor point.&amp;nbsp; I can see the agument for always forcing the quote killer; I'm sure it cut down the number of calls to tech support with complaint&amp;nbsp; "my SAS session is hung and I don't know why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Left off the closing quote there, get it? : )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Q.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 16:07:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273632#M18988</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2016-05-27T16:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Connect endrsubmit ignored (tokenizer problem?)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273635#M18989</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/19879"&gt;@Quentin﻿&lt;/a&gt;&amp;nbsp;- as you guess, bad things happen when you leave an open comment or quote when you submit a job to SAS. &amp;nbsp;The quote killer line is insurance that prevents many more problems than it causes...&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 16:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273635#M18989</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-05-27T16:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS/Connect endrsubmit ignored (tokenizer problem?)</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273636#M18990</link>
      <description>&lt;P&gt;Oh, and you wondered if the behavior is unique to EG -- I doubt that it is. &amp;nbsp;I suspect if you sent the same code sequence in PC SAS you would have the same behavior in the CONNECT session.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2016 16:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-Connect-endrsubmit-ignored-tokenizer-problem/m-p/273636#M18990</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-05-27T16:15:05Z</dc:date>
    </item>
  </channel>
</rss>

