<?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 do load macros as part of the autoexec process flow in Enterprise Guide? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-load-macros-as-part-of-the-autoexec-process-flow-in/m-p/289442#M19757</link>
    <description>Just to verify: C:\macros is on the server (in case of a server based setup)?</description>
    <pubDate>Thu, 04 Aug 2016 07:29:05 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2016-08-04T07:29:05Z</dc:date>
    <item>
      <title>How do load macros as part of the autoexec process flow in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-load-macros-as-part-of-the-autoexec-process-flow-in/m-p/289364#M19754</link>
      <description>&lt;P&gt;I am creating a program that runs as part of my autoexec process flow.&amp;nbsp; I want to load the macros I will use during my EG project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have stored all my needed macros in one directory: C:\macros;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, one file in that directory might be macro_test.sas:&lt;/P&gt;
&lt;P&gt;%macro test;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; %put Hello World;&lt;/P&gt;
&lt;P&gt;%mend test;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I compile all the macros in that directory without using an %include statement for each program?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My first thought is:&lt;/P&gt;
&lt;P&gt;options mautosource sasautos=("C:\macros\ ");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but when I then try to invoke %test I get the following error:&amp;nbsp; Apparent invocation of macro TEST not resolved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-load-macros-as-part-of-the-autoexec-process-flow-in/m-p/289364#M19754</guid>
      <dc:creator>KAZ</dc:creator>
      <dc:date>2016-08-03T21:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do load macros as part of the autoexec process flow in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-load-macros-as-part-of-the-autoexec-process-flow-in/m-p/289368#M19755</link>
      <description>&lt;P&gt;SASAUTOS is a good way to go, but ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most important change to make is that the name of the macro should match the name of the file holding the macro.&amp;nbsp; For example, the macro %test should be stored within test.sas (not within macro_test.sas).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is possible you will need to change the path slightly to "C:\macros" rather than "C:\macros\ ".&amp;nbsp; You'll find out quickly enough whether that change is also needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note, if you encounter the issue you described, you must either restart the EG session or (better) issue this statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options MRECALL;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, SAS stops searching for macros once a single search has failed.&amp;nbsp; This option restores the search process.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 21:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-load-macros-as-part-of-the-autoexec-process-flow-in/m-p/289368#M19755</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-08-03T21:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do load macros as part of the autoexec process flow in Enterprise Guide?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-load-macros-as-part-of-the-autoexec-process-flow-in/m-p/289442#M19757</link>
      <description>Just to verify: C:\macros is on the server (in case of a server based setup)?</description>
      <pubDate>Thu, 04 Aug 2016 07:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-do-load-macros-as-part-of-the-autoexec-process-flow-in/m-p/289442#M19757</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-08-04T07:29:05Z</dc:date>
    </item>
  </channel>
</rss>

