<?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 not resolved even adding in the SASAUTOS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289139#M59703</link>
    <description>Set the system option mrecall. That tells SAS to search the autocall library every time it sees a macro reference, even if it has previously searched and not found it. (The docs says this is inefficient and should only be used in development.)</description>
    <pubDate>Wed, 03 Aug 2016 09:35:06 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2016-08-03T09:35:06Z</dc:date>
    <item>
      <title>Macro not resolved even adding in the SASAUTOS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289108#M59695</link>
      <description>&lt;P&gt;I am running on SAS 9.4 environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my macro folder "c:\macro", &amp;nbsp;I have two files&amp;nbsp;&lt;SPAN style="line-height: 20px;"&gt;a.sas and b.sas. a.sas contains %a definition and similary b.sas contain %b definition&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%a;

filename mac_ref "c:\macro";
options APPEND = SASAUTOS=(,mac_ref);

%b;

%a;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;call of %b is successfull and call %a throws error "Apparent symbol not resolved".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 20px;"&gt;Problem that I am facing is &amp;nbsp;If I call any macro before Options append then it do not resolve at all in the session, even after reference appended in SASAUTOS.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 06:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289108#M59695</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-08-03T06:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not resolved even adding in the SASAUTOS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289116#M59697</link>
      <description>&lt;P&gt;What you are seeing is standard SAS behaviour. When you first call %A it will not be found as SASAUTOS follows. SAS defines a dummy macro called A since it cant find the real A. This then blocks you from finding the real A after your SASAUTOS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A good practice is to put your SASAUTOS statement into your AUTOEXEC.SAS program so it will be run each time you start SAS. That way even a macro call as your first program statement will always work.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 07:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289116#M59697</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-08-03T07:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not resolved even adding in the SASAUTOS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289125#M59700</link>
      <description>It should be LIBNAME not FILENAME, if I was right.</description>
      <pubDate>Wed, 03 Aug 2016 08:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289125#M59700</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-03T08:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not resolved even adding in the SASAUTOS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289131#M59701</link>
      <description>&lt;P&gt;It is filename.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 08:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289131#M59701</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2016-08-03T08:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not resolved even adding in the SASAUTOS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289139#M59703</link>
      <description>Set the system option mrecall. That tells SAS to search the autocall library every time it sees a macro reference, even if it has previously searched and not found it. (The docs says this is inefficient and should only be used in development.)</description>
      <pubDate>Wed, 03 Aug 2016 09:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289139#M59703</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2016-08-03T09:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not resolved even adding in the SASAUTOS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289142#M59705</link>
      <description>&lt;PRE&gt;
That is a SAS program file , Not compiled macro of SAS .
You can't use it in this way. Should be :

%include 'c:\temp\a.sas';

%include 'c:\temp\b.sas';

&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2016 09:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-not-resolved-even-adding-in-the-SASAUTOS/m-p/289142#M59705</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-03T09:51:23Z</dc:date>
    </item>
  </channel>
</rss>

