<?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 does one report a potentiial bug in SAS? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-does-one-report-a-potentiial-bug-in-SAS/m-p/754622#M238011</link>
    <description>&lt;P&gt;Tech support is who you contact to report any issues with SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't expect incorrect syntax to be treated as a "bug" though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Incorrect macro syntax that causes issues generally are resolved by 1) shutting down SAS and 2) fixing the syntax before rerunning the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have %macA() in a %local statement if the macro resolves to anything that might be considered a valid list of names it works just fine.&lt;/P&gt;
&lt;PRE&gt;%macro macA();
     var1 var2 var
%mend macA;

/* this will compile just fine */
%macro macB();
    %local b /* i forget the semicolon */
    %macA();
    proc print data=sashelp.class;
    run;
%mend;

%macB();&lt;/PRE&gt;
&lt;P&gt;Are you sure that you mean recompile MacA? There would be no reason to, MacB is the culprit. MacB is still running and you can't compile it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If running the code interactively this should cancel the running macros and allow recompiling:&lt;/P&gt;
&lt;PRE&gt;%macro dummy;
%abort cancel;
%mend;
%dummy &lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Jul 2021 16:17:42 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-07-16T16:17:42Z</dc:date>
    <item>
      <title>How does one report a potentiial bug in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-one-report-a-potentiial-bug-in-SAS/m-p/754613#M238003</link>
      <description>&lt;P&gt;Pretty much the title. I think I found a bug in SAS macros. I found the cause of my problem but would like to share my findings with the developers. The closest I could get was posting here or contacting Techincal support. As far as I could tell they have no ability to address this type of issue so here I am.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The script below shows how to create the bug and what its effects are.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* this will compile just fine */
%macro macA();
    %local a;
    %let a=1;
    proc print data=sashelp.cars;
    run;
%mend macA;

/* this will compile just fine */
%macro macB();
    %local b /* i forget the semicolon */
    %macA();
    proc print data=sashelp.air;
    run;
%mend;

/* this will give an error when I run it*/
%macB();

/* now no matter what you do, you can no longer recompile the macro %maca when you want to change it. It will return the error
ERROR: The macro MACA is still executing and cannot be redefined.
ERROR: A dummy macro will be compiled
*/
/* goahead try it */
%macro macA();
    %local a;
    %let a=1;
    proc print data=sashelp.cars;
    run;
%mend macA;

/* this will compile thought */
%macro macc();
    %local a;
    %let a=1;
    proc print data=sashelp.cars;
    run;
%mend macc;
&lt;BR /&gt;/* you can still execute code, no problem, despite the macro supposedly still running but you can't recompile maca at this point. */
proc print data=sashelp.company;
run;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Since I know this will be asked:&lt;/P&gt;&lt;PRE&gt;NOTE: Copyright (c) 2016 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software 9.4 (TS1M7)
      Licensed to ______________________________
NOTE: This session is executing on the X64_10PRO  platform.



NOTE: Analytical products:

      SAS/STAT 15.2
      SAS/ETS 15.2
      SAS/IML 15.2
      SAS/QC 15.2

NOTE: Additional host information:

 X64_10PRO WIN 10.0.18362  Workstation

NOTE: SAS initialization used:
      real time           1.64 seconds
      cpu time            1.13 seconds&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 15:32:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-one-report-a-potentiial-bug-in-SAS/m-p/754613#M238003</guid>
      <dc:creator>roberthembree</dc:creator>
      <dc:date>2021-07-16T15:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: How does one report a potentiial bug in SAS?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-one-report-a-potentiial-bug-in-SAS/m-p/754622#M238011</link>
      <description>&lt;P&gt;Tech support is who you contact to report any issues with SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't expect incorrect syntax to be treated as a "bug" though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Incorrect macro syntax that causes issues generally are resolved by 1) shutting down SAS and 2) fixing the syntax before rerunning the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have %macA() in a %local statement if the macro resolves to anything that might be considered a valid list of names it works just fine.&lt;/P&gt;
&lt;PRE&gt;%macro macA();
     var1 var2 var
%mend macA;

/* this will compile just fine */
%macro macB();
    %local b /* i forget the semicolon */
    %macA();
    proc print data=sashelp.class;
    run;
%mend;

%macB();&lt;/PRE&gt;
&lt;P&gt;Are you sure that you mean recompile MacA? There would be no reason to, MacB is the culprit. MacB is still running and you can't compile it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If running the code interactively this should cancel the running macros and allow recompiling:&lt;/P&gt;
&lt;PRE&gt;%macro dummy;
%abort cancel;
%mend;
%dummy &lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Jul 2021 16:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-one-report-a-potentiial-bug-in-SAS/m-p/754622#M238011</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-16T16:17:42Z</dc:date>
    </item>
  </channel>
</rss>

