<?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: options sasautos does not work in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679114#M205065</link>
    <description>&lt;P&gt;You can try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mymacros &amp;lt;path&amp;gt;;
options sasautos = (sasautos mymacros);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;each macro should be saved &lt;STRONG&gt;separately&lt;/STRONG&gt; in the path as &amp;lt;macro_name&amp;gt;.sas&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;you can gather a group of macros in one &amp;lt;file_name1&amp;gt;.sas and &lt;U&gt;precede your code&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;with:&lt;STRONG&gt; %include &amp;lt;path&amp;gt;/&amp;lt;file_name1&amp;gt;.sas;&amp;nbsp;&lt;/STRONG&gt;- in order to compile the macros.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2020 09:52:03 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2020-08-25T09:52:03Z</dc:date>
    <item>
      <title>options sasautos does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679077#M205053</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My impression was that when you a a file with a lot of macros in a particular location you could call these macros with a&lt;/P&gt;&lt;P&gt;options sasautos=(sasautos "&amp;lt;path&amp;gt;"));&lt;/P&gt;&lt;P&gt;In my case this does not work. It says "Apparent invocation of macro &amp;lt;macroname&amp;gt;"&amp;nbsp; not resolved.&lt;/P&gt;&lt;P&gt;Do I need something extra ? Path is existing (checked).&lt;/P&gt;&lt;P&gt;I'm working in a Windows environment.&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;William&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 06:55:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679077#M205053</guid>
      <dc:creator>Billybob73</dc:creator>
      <dc:date>2020-08-25T06:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: options sasautos does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679078#M205054</link>
      <description>&lt;P&gt;Please post the log as text.&lt;/P&gt;
&lt;P&gt;The sas-session is running on windows, too? Or just the client?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 06:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679078#M205054</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-08-25T06:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: options sasautos does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679093#M205055</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/172904"&gt;@Billybob73&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;My impression was that when you a a file with a lot of macros in a particular location you could call these macros with a&lt;/P&gt;
&lt;P&gt;options sasautos=(sasautos "&amp;lt;path&amp;gt;"));&lt;/P&gt;
&lt;P&gt;In my case this does not work. It says "Apparent invocation of macro &amp;lt;macroname&amp;gt;"&amp;nbsp; not resolved.&lt;/P&gt;
&lt;P&gt;Do I need something extra ? Path is existing (checked).&lt;/P&gt;
&lt;P&gt;I'm working in a Windows environment.&lt;/P&gt;
&lt;P&gt;Thanks !&lt;/P&gt;
&lt;P&gt;Rgds&lt;/P&gt;
&lt;P&gt;William&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To use the SAS autos the macro definition files have to 1) be in the SASAUTOS search path 2) have exactly one macro in each .SAS program file and 3) the name of the file has to be exactly the same as the name of the macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you have a single SAS program file with multiple macro definitions in it then this does not work.&lt;/P&gt;
&lt;P&gt;If your file name is different then the name of the macro: such as filename is mymacro and the name of the macro invoked is %countthis then it will not work.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 07:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679093#M205055</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-25T07:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: options sasautos does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679114#M205065</link>
      <description>&lt;P&gt;You can try:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename mymacros &amp;lt;path&amp;gt;;
options sasautos = (sasautos mymacros);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;each macro should be saved &lt;STRONG&gt;separately&lt;/STRONG&gt; in the path as &amp;lt;macro_name&amp;gt;.sas&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;you can gather a group of macros in one &amp;lt;file_name1&amp;gt;.sas and &lt;U&gt;precede your code&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;with:&lt;STRONG&gt; %include &amp;lt;path&amp;gt;/&amp;lt;file_name1&amp;gt;.sas;&amp;nbsp;&lt;/STRONG&gt;- in order to compile the macros.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 09:52:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679114#M205065</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-08-25T09:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: options sasautos does not work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679133#M205070</link>
      <description>Try append system option:&lt;BR /&gt;&lt;BR /&gt;options append=(sasautos=(abc def)   ) ;</description>
      <pubDate>Tue, 25 Aug 2020 12:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/options-sasautos-does-not-work/m-p/679133#M205070</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-08-25T12:12:54Z</dc:date>
    </item>
  </channel>
</rss>

