<?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: Macro compilation error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171252#M264289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another common error is to have two copies of the macro definition in the same file. Especially if you develop the code in interactive SAS and hit the RECALL button one too many times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2014 17:54:07 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2014-07-08T17:54:07Z</dc:date>
    <item>
      <title>Macro compilation error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171248#M264285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello - I'm attempting to call, compile, and execute a macro located in my autocall library from Enterprise Guide.&amp;nbsp; Every time I attempt to run the macro, the following error message occurs.&amp;nbsp; If I open up the macro file in my current SAS session &amp;amp; compile it, the program runs fine... So as far as I know the macro is written correctly.&amp;nbsp; However, when I try to call &amp;amp; compile the macro without manually compiling it in the current session, I get this error message.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody have any thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The options I include in the program are:&lt;/P&gt;&lt;P&gt;options noquotelenmax mautosource mrecall sasautos=(sasautos '\\fs01\SAS\MACROS\' '\\fs01\SAS\MACROS\Stats\');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: Expecting comma (to separate macro parameters) or close parenthesis (to end parameter list) but found: data&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR: A dummy macro will be compiled.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %role_scores (dataset=work.addginis, etc...etc..etc..&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! outputdataset=work.rolesout);&lt;/P&gt;&lt;P&gt;17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %role_scores (dataset=work.addginis, etc... etc... etc...,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; _&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! etc... etc... &lt;/P&gt;&lt;P&gt;17&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! outputdataset=work.rolesout);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Autocall member, ROLE_SCORES, has not been compiled by the macro processor. It might contain a macro syntax error or not &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define a macro with the same name as the member.&amp;nbsp; To autocall this member again, set OPTION MRECALL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171248#M264285</guid>
      <dc:creator>grodman</dc:creator>
      <dc:date>2014-07-08T17:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Macro compilation error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171249#M264286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are lines of code too long?&lt;/P&gt;&lt;P&gt;Make sure %MACRO statement is on the first line of the file and the %MEND is on the last line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171249#M264286</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-08T17:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Macro compilation error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171250#M264287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a length limit for lines of code within a macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%MACRO and %MEND are on both ends of the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171250#M264287</guid>
      <dc:creator>grodman</dc:creator>
      <dc:date>2014-07-08T17:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro compilation error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171251#M264288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally I use 70 to 75 columns as the maximum.&amp;nbsp; I find that it is much more readable that way.&amp;nbsp; Notice how newspapers are split into columns so that each line is not too long for the field of vision of the reader.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171251#M264288</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-08T17:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro compilation error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171252#M264289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another common error is to have two copies of the macro definition in the same file. Especially if you develop the code in interactive SAS and hit the RECALL button one too many times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:54:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171252#M264289</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-07-08T17:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Macro compilation error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171253#M264290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't redact the macro call, show it as actually submitted as well. It appears you are likely to have some punctuation or parenthesis issue as stated. But we can't tell with a line like&lt;/P&gt;&lt;P&gt;%role_scores (dataset=work.addginis, etc...etc..etc..&lt;SPAN style="font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what may be happening.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 21:22:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-compilation-error/m-p/171253#M264290</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-08T21:22:43Z</dc:date>
    </item>
  </channel>
</rss>

