<?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: Error calling macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-calling-macro/m-p/867521#M342635</link>
    <description>&lt;P&gt;Show us the &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ENTIRE&lt;/STRONG&gt; &lt;/FONT&gt;code for the macro. Show us the&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ENTIRE&lt;/STRONG&gt; &lt;/FONT&gt;log for this macro, not just the error messages. Please copy the log as text and then paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1663012019648.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75161i0E71B1489A6C9839/image-size/large?v=v2&amp;amp;px=999" role="button" title="PaigeMiller_0-1663012019648.png" alt="PaigeMiller_0-1663012019648.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 17:22:46 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-03-31T17:22:46Z</dc:date>
    <item>
      <title>Error calling macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-calling-macro/m-p/867517#M342634</link>
      <description>&lt;P&gt;I'm calling the macro as shown below.&amp;nbsp; This macro was working fine in development server but when I deployed this code to production I've got the error. Production version of the code is same as development now. Any help why I got the error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%retrieve_transfer_data (
start_date_udh=%quote(&amp;amp;start_date_udh),
end_date_udh=%quote(&amp;amp;end_date_udh),
out_sales_table=%quote(&amp;amp;out_sales_table)&lt;/PRE&gt;
&lt;P&gt;Error is&lt;/P&gt;
&lt;PRE&gt;%retrieve_transfer_data( start_date_udh=, end_date_udh=, out_sales_table= ) / 
minoperator;
19   %retrieve_transfer_data(
     -
     180
ERROR 180-322: Statement is not valid or it is used out of proper order.

SYMBOLGEN:  Macro variable OUT_SALES_TABLE resolves to out_sales_table
MPRINT(ASSEMBLE_DATA):   * declare local macros variables *;
ERROR: The %LOCAL statement is not valid in open code.&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2023 17:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-calling-macro/m-p/867517#M342634</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2023-03-31T17:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error calling macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-calling-macro/m-p/867521#M342635</link>
      <description>&lt;P&gt;Show us the &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ENTIRE&lt;/STRONG&gt; &lt;/FONT&gt;code for the macro. Show us the&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ENTIRE&lt;/STRONG&gt; &lt;/FONT&gt;log for this macro, not just the error messages. Please copy the log as text and then paste it into the window that appears when you click on the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1663012019648.png" style="width: 859px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75161i0E71B1489A6C9839/image-size/large?v=v2&amp;amp;px=999" role="button" title="PaigeMiller_0-1663012019648.png" alt="PaigeMiller_0-1663012019648.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 17:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-calling-macro/m-p/867521#M342635</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-03-31T17:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error calling macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-calling-macro/m-p/867571#M342655</link>
      <description>&lt;P&gt;Has the macro been compiled in the current session? If the code that creates the macro is not executed then it is not available to execute and is likely the most common failure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may need to provide a copy of the macro code in a location that the &lt;STRONG&gt;executing &lt;/STRONG&gt;SAS session recognizes as an autocall location so that it can find and compile the code when needed.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 21:00:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-calling-macro/m-p/867571#M342655</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-31T21:00:33Z</dc:date>
    </item>
  </channel>
</rss>

