<?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: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165327#M42846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, there is no error at compile time of sas macro. There is error when your provided command added in sas macro. Error arrow was pointing at mcompilenote=all, I also tried with double quotes around all value (like &lt;SPAN style="font-size: 13.3333330154419px;"&gt;mcompilenote&lt;/SPAN&gt;="all") but still same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the invoked macro "PREREQUISITE".&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options mprint mlogic symbolgen mcompilenote=all; options metaserver="servername"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;1&amp;nbsp; ! metaport=8561 metauser="sasadm@saspw" metapass=XXXXXXXXXXX metarepository="Foundation";&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_,&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; _LAST_, _NULL_.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;91&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.OPTIONS may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.OPTIONS was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.MPRINT may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.MPRINT was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.MLOGIC may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.MLOGIC was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.SYMBOLGEN may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.SYMBOLGEN was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.MCOMPILENOTE may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.MCOMPILENOTE was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.ALL may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.ALL was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.02 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 05:40:04 GMT</pubDate>
    <dc:creator>gauravkodmalwar</dc:creator>
    <dc:date>2015-02-12T05:40:04Z</dc:date>
    <item>
      <title>Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165323#M42842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;************ MACRO code **********&lt;/P&gt;&lt;P&gt;%macro preRequisite(parStartDate=,parEndDate=);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options metaserver="servername" metaport=8561 metauser="sasadm@saspw" metapass="password" metarepository="Foundation";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;/* some SQL code here*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mend preRequisite;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;************ MACRO code **********&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;************ ERROR &lt;SPAN style="font-size: 13.3333330154419px;"&gt;************&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;76&amp;nbsp;&amp;nbsp; %preRequisite(parStartDate=&amp;amp;varStartDate.,parEndDate=&amp;amp;varEndDate.);&lt;/P&gt;&lt;P&gt;MLOGIC(PREREQUISITE):&amp;nbsp; Parameter PARSTARTDATE has value 03/01/2012&lt;/P&gt;&lt;P&gt;MLOGIC(PREREQUISITE):&amp;nbsp; Parameter PARENDDATE has value 03/31/2012&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the invoked macro "PREREQUISITE".&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options metaserver="servername" metaport=8561 metauser="sasadm@saspw"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_,&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; _LAST_, _NULL_.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; !&amp;nbsp;&amp;nbsp; options metaserver="servername" metaport=8561 metauser="sasadm@saspw"&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --------&lt;/P&gt;&lt;P&gt;--------------&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;&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;&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; 22&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; 22&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;************ ERROR &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;************&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 03:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165323#M42842</guid>
      <dc:creator>gauravkodmalwar</dc:creator>
      <dc:date>2015-02-12T03:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165324#M42843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Very strange behaivior. For me this code is working.&lt;/P&gt;&lt;P&gt;I hope, this line: "&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;************ MACRO code **********&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;"&amp;nbsp;&amp;nbsp; is NOT part of the code! (It makes also the next line - the macro header - a comment, until the semicolon. )&lt;/P&gt;&lt;P&gt;It is is, remove it, or replace it with "&amp;nbsp; /*&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;********** MACRO code ********&lt;/SPAN&gt;*/&amp;nbsp;&amp;nbsp; "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 04:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165324#M42843</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-02-12T04:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165325#M42844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gergely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it's not part of sas code. I added it here, just to segregate between logs and sas code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 04:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165325#M42844</guid>
      <dc:creator>gauravkodmalwar</dc:creator>
      <dc:date>2015-02-12T04:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165326#M42845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the macro compile without errors? Turn on these otions:&lt;/P&gt;&lt;P&gt;options mprint mlogic symbolgen mcompilenote=all;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 05:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165326#M42845</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-02-12T05:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165327#M42846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, there is no error at compile time of sas macro. There is error when your provided command added in sas macro. Error arrow was pointing at mcompilenote=all, I also tried with double quotes around all value (like &lt;SPAN style="font-size: 13.3333330154419px;"&gt;mcompilenote&lt;/SPAN&gt;="all") but still same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the invoked macro "PREREQUISITE".&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; options mprint mlogic symbolgen mcompilenote=all; options metaserver="servername"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200&lt;/P&gt;&lt;P&gt;1&amp;nbsp; ! metaport=8561 metauser="sasadm@saspw" metapass=XXXXXXXXXXX metarepository="Foundation";&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_,&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; _LAST_, _NULL_.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;91&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.OPTIONS may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.OPTIONS was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.MPRINT may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.MPRINT was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.MLOGIC may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.MLOGIC was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.SYMBOLGEN may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.SYMBOLGEN was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.MCOMPILENOTE may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.MCOMPILENOTE was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.ALL may be incomplete.&amp;nbsp; When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; observations and 0 variables.&lt;/P&gt;&lt;P&gt;WARNING: Data set WORK.ALL was not replaced because this step was stopped.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.02 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 05:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165327#M42846</guid>
      <dc:creator>gauravkodmalwar</dc:creator>
      <dc:date>2015-02-12T05:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165328#M42847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What happens if you remove the options statement, does the macro execute appropriately?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 05:45:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165328#M42847</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-12T05:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165329#M42848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is something very strange. The Warning messages suggest, that options names became dataset name.&lt;/P&gt;&lt;P&gt;Are you calling the macro in an open code? It seems you called it from the inside a data step!!&amp;nbsp; This could be the explanation of the error messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, do not place the options statement inside the macro. Just run it once, outside of the macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 05:51:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165329#M42848</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-02-12T05:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165330#M42849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I remove options from macro then macro runs fine and if I run only options sentence then inside macro by using F3, it also runs fine without any issue. You are right, I am calling it from data step. I used data step because I was calling macro earlier by using call Execute but now I changed my mind to directly call macro. Now facing another issue but not related to this issue. Thanks Gergely &amp;amp; Reeza.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 06:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165330#M42849</guid>
      <dc:creator>gauravkodmalwar</dc:creator>
      <dc:date>2015-02-12T06:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165331#M42850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call execute('some string') puts 'some string' on the input stack - during the execution phase of data step. So if 'some string' contains SAS statements they are executed &lt;STRONG&gt;after the data step has finished&lt;/STRONG&gt;. (Exception to it are macro statements, which are executed immediatel.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call a macro, the contents of the macro are unfolded immediately, and this is done even &lt;STRONG&gt;before the compillation phase of the data step&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In case the macro contatains SQL or options statement, it's like puting SQL code inside data step. This is of course not possible.&lt;/P&gt;&lt;P&gt;You should call this macro simply from open code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 08:27:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165331#M42850</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-02-12T08:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165332#M42851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you call the macro in a data statement (not step, statement!) before the semicolon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 08:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165332#M42851</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-02-12T08:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165333#M42852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kurt, you are right. It solved that error but now failing at next step. It's not able to identify another macro, may be because credentials provided in options statement is not effectively red.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;162&amp;nbsp; %mend preRequisite;&lt;/P&gt;&lt;P&gt;NOTE: The macro PREREQUISITE completed compilation without errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 11 instructions 340 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;163&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;164&amp;nbsp; %let varStartDate =03/01/2012;&lt;/P&gt;&lt;P&gt;165&amp;nbsp; %let varEndDate =03/31/2012;&lt;/P&gt;&lt;P&gt;166&amp;nbsp; %preRequisite(parStartDate=&amp;amp;varStartDate.,parEndDate=&amp;amp;varEndDate.);&lt;/P&gt;&lt;P&gt;MLOGIC(PREREQUISITE):&amp;nbsp; Beginning execution.&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable VARSTARTDATE resolves to 03/01/2012&lt;/P&gt;&lt;P&gt;SYMBOLGEN:&amp;nbsp; Macro variable VARENDDATE resolves to 03/31/2012&lt;/P&gt;&lt;P&gt;MLOGIC(PREREQUISITE):&amp;nbsp; Parameter PARSTARTDATE has value 03/01/2012&lt;/P&gt;&lt;P&gt;MLOGIC(PREREQUISITE):&amp;nbsp; Parameter PARENDDATE has value 03/31/2012&lt;/P&gt;&lt;P&gt;MPRINT(PREREQUISITE):&amp;nbsp;&amp;nbsp; options metaserver="servername" metaport=8561 metauser="sasadm@saspw"&lt;/P&gt;&lt;P&gt;metapass="Password1" metarepository="Foundation";&lt;/P&gt;&lt;P&gt;NOTE: Line generated by the invoked macro "PREREQUISITE".&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %anothermacro;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;180&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro &lt;SPAN style="font-size: 13.3333330154419px;"&gt;anothermacro&lt;/SPAN&gt; not resolved.&lt;/P&gt;&lt;P&gt;MPRINT(PREREQUISITE):&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;%anothermacro;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;MLOGIC(PREREQUISITE):&amp;nbsp; Ending execution.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;167&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 10:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165333#M42852</guid>
      <dc:creator>gauravkodmalwar</dc:creator>
      <dc:date>2015-02-12T10:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165334#M42853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;No, it is not because of credentials. That macro is not (yet) defined in this SAS session.&lt;/P&gt;&lt;P&gt;You should run the macro definition. Something like this one:&amp;nbsp; %macro anothermacro.....&amp;nbsp;&amp;nbsp;&amp;nbsp; %mend;&lt;/P&gt;&lt;P&gt;Or this %anothermacro is an aoutocall macro. In this case the macro definition is stored on the server. Check the autosource and&amp;nbsp; sasautos= system option.&lt;/P&gt;&lt;P&gt;Or this &lt;SPAN style="font-size: 13.3333330154419px;"&gt;%anothermacro is a precompiled macro. Check the mstored and sasmstore=system options.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Was the call of %anothermacro&amp;nbsp; succesfull in other cases (other programs)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Gergely Bathó&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 10:31:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165334#M42853</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-02-12T10:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165335#M42854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually if I call first macro in same file after %mend then %anothermacro is called smoothly without any issue. Like following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro preRequisite(parStartDate=,parEndDate=);&lt;/P&gt;&lt;P&gt;options metaserver="servername" metaport=8561 metauser="sasadm@saspw" metapass="password" metarepository="Foundation";&lt;/P&gt;&lt;P&gt;%anothermacro;&lt;/P&gt;&lt;P&gt;%mend preRequisite;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* call the first macro */&lt;/P&gt;&lt;P&gt;%let varStartDate =03/01/2012;&lt;/P&gt;&lt;P&gt;%let varEndDate =03/31/2012;&lt;/P&gt;&lt;P&gt;%preRequisite(parStartDate=&amp;amp;varStartDate.,parEndDate=&amp;amp;varEndDate.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I call same macro from another file, where I already included path of first macro into the sasautos then it throws error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;! metarepository="Foundation";&amp;nbsp; %anothermacro;&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;&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;/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;&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;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro anothermacro not resolved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 10:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165335#M42854</guid>
      <dc:creator>gauravkodmalwar</dc:creator>
      <dc:date>2015-02-12T10:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165336#M42855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a macro like this &lt;STRONG&gt;compiles&lt;/STRONG&gt;:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%macro xxx(&amp;lt;parameters&amp;gt;);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&amp;lt;statements&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;%anothermacro;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%mend xxx;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;it doesn't mean %anothermacro&amp;nbsp; exists. The existence of %anothermacro is revealed only when you &lt;STRONG&gt;call&lt;/STRONG&gt; the %xxx macro.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;What happens if you just call %anothermacro&amp;nbsp; from open code?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%anothermacro;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;How do you "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;include path of first macro into the sasautos&lt;/SPAN&gt;"? With a statment like this?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;options sasautos=(path1, path2);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 11:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165336#M42855</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-02-12T11:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165337#M42856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gergely,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use following code to include xxx macro into my code where I am calling macro and xxx macro file is saved at same path.&lt;/P&gt;&lt;P&gt;%let urmacros='D:\spa\windows CI\common';&lt;/P&gt;&lt;P&gt;options sasautos=(&amp;amp;urmacros.);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I call %anothermacro then it works fine but I need to use path of %anothermacro in the code. Problem is appearing when I call xxx macro and xxx macro calls anothermacro. Surprisingly, if I call xxx macro from it's own file (after %mend by using %xxx()) then it works fine but it doesn't work fine when&amp;nbsp; I call it from another code file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 09:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165337#M42856</guid>
      <dc:creator>gauravkodmalwar</dc:creator>
      <dc:date>2015-02-13T09:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165338#M42857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you paste here the code you are using? First the outer code, then the contents of the first macro, then the inner macro.&lt;/P&gt;&lt;P&gt;That files (autocall macros) do you have? Where are they?&lt;/P&gt;&lt;P&gt;What is in the log (error message)?&lt;/P&gt;&lt;P&gt;I don't understand how you are using the "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;path of %anothermacro&lt;/SPAN&gt;". When you are calling a macro, you just use the macro name.&lt;/P&gt;&lt;P&gt;You can list more then 1 path in the sasautos option. (See my previous example.) Is this maybe a solution?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If&lt;/STRONG&gt; you are using &lt;STRONG&gt;autocall macros&lt;/STRONG&gt; (You write one single macro with %macro xxx ;..... %mend; and save it to a file xxx.sas), do not place the macro &lt;STRONG&gt;call&lt;/STRONG&gt; in the file. Only the macro &lt;STRONG&gt;definition&lt;/STRONG&gt; goes there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 11:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165338#M42857</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-02-13T11:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while providing options in macro, I also tried %options since options used inside macro but no luck</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165339#M42858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps your habit of wrapping pure macro code inside of useless DATA _NULL_ step is what is causing the problem?&lt;/P&gt;&lt;P&gt;In your example line 163 is not needed.&lt;/P&gt;&lt;P&gt;Perhaps in your other programs you have similar unneeded lines?&amp;nbsp; Perhaps some are missing a closing semi-colon?&lt;/P&gt;&lt;P&gt;Perhaps some the lines in your macro source files are too long and are getting truncated when %INC or autocalled?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 14:09:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Syntax-error-while-providing-options-in-macro-I-also-tried/m-p/165339#M42858</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-02-13T14:09:23Z</dc:date>
    </item>
  </channel>
</rss>

