<?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: SAS Macro: AUTOCALL interactive versus batch /  macro not found in batch in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797073#M255831</link>
    <description>&lt;P&gt;Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Yes, the cfg file is correct, the code I included is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;-ECHOAUTO
-AUTOEXEC "E:\SASHome\SASFoundation\9.4\autoexec.sas"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Reading the log more carefully, I found:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Macro search path is: "G:\SAS Data\sasmacro"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am on a test server and that is legacy code that I did not write.&amp;nbsp; I am almost certain to find a second execution of the SASAUTOS option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2022 20:52:16 GMT</pubDate>
    <dc:creator>KevinViel</dc:creator>
    <dc:date>2022-02-17T20:52:16Z</dc:date>
    <item>
      <title>SAS Macro: AUTOCALL interactive versus batch /  macro not found in batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797066#M255829</link>
      <description>&lt;P&gt;My config file points to an autoexec.sas file that includes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mautolocdisplay
        sasautos        = ( "G:\SAS Data\02_macros"
                          , sasautos
                          )
        ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run a program in interactive PC SAS, it works as intended.&amp;nbsp; When I run the program in batch, I get the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WARNING: Apparent invocation of macro MAC_U_INITIALIZE_ENVIRONMENT not resolved.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The log includes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SASAUTOS=SASAUTOS Specifies the location of one or more autocall libraries.
NOTE: PROCEDURE OPTIONS used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds
      

5          
6          options mautolocdisplay
7                  mautosource
8                  sasautos        = ( "G:\SAS Data\02_macros"
9                                    , sasautos
10                                   )
11                 noquotelenmax
12                 nocenter
13                 nonumber
14                 nodate
15                 formdlim = " "
16                 ls       = max
17                 ;
18         
19         proc options option = sasautos ;
20         run ;

    SAS (r) Proprietary Software Release 9.4  TS1M7

&amp;#12;The SAS System

 SASAUTOS=("G:\SAS Data\02_macros"                           , sasautos)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can anyone elucidate the issue or direct me to any documentation?&amp;nbsp; &amp;nbsp;I note that when I included the OPTIONS statement directly in the program, then the batch submission worked as intended.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 20:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797066#M255829</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2022-02-17T20:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro: AUTOCALL interactive versus batch /  macro not found in batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797072#M255830</link>
      <description>&lt;P&gt;This doesn't sound right:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;My config file points to an autoexec.sas file that includes:&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You should be using -autoexec option to point to an autoexec file. Or just let the normal rules for searching for an autoexec file apply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the batch submit using a different config file? Different other options?&lt;/P&gt;
&lt;P&gt;The normal search order for find an autoexec file is the current directory, then your home directory and finally some system directory.&amp;nbsp; At least that is the way it has worked for the past 25 years.&lt;/P&gt;
&lt;P&gt;Is the batch job running with a different working directory then you get when you start SAS interactively?&lt;/P&gt;
&lt;P&gt;Is it running as a different user?&lt;BR /&gt;Perhaps it is running on a different machine.&lt;/P&gt;
&lt;P&gt;Or a different version and/or installation of SAS.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 20:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797072#M255830</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-17T20:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro: AUTOCALL interactive versus batch /  macro not found in batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797073#M255831</link>
      <description>&lt;P&gt;Tom,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Yes, the cfg file is correct, the code I included is:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;-ECHOAUTO
-AUTOEXEC "E:\SASHome\SASFoundation\9.4\autoexec.sas"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Reading the log more carefully, I found:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Macro search path is: "G:\SAS Data\sasmacro"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am on a test server and that is legacy code that I did not write.&amp;nbsp; I am almost certain to find a second execution of the SASAUTOS option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 20:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797073#M255831</guid>
      <dc:creator>KevinViel</dc:creator>
      <dc:date>2022-02-17T20:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro: AUTOCALL interactive versus batch /  macro not found in batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797075#M255832</link>
      <description>&lt;P&gt;When you run the program in batch where are you doing that? On your PC or somewhere else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the MAUTOSOURCE option set on in batch mode?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 20:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797075#M255832</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-02-17T20:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro: AUTOCALL interactive versus batch /  macro not found in batch</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797080#M255836</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;adked: is the&amp;nbsp;MAUTOSOURCE turned on?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and is the&amp;nbsp;MRECALL turned on too?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 21:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Macro-AUTOCALL-interactive-versus-batch-macro-not-found-in/m-p/797080#M255836</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2022-02-17T21:15:58Z</dc:date>
    </item>
  </channel>
</rss>

