<?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 to use MAUTOSOURCE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-MAUTOSOURCE/m-p/796195#M255474</link>
    <description>&lt;P&gt;Also in the S_DSET program, the first line MUST have the statement - %macro s_dset(parameter1, parameter2, parameter3);&lt;/P&gt;</description>
    <pubDate>Tue, 15 Feb 2022 02:26:18 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-02-15T02:26:18Z</dc:date>
    <item>
      <title>how to use MAUTOSOURCE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-MAUTOSOURCE/m-p/796181#M255466</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an error message where I cannot call a global macro.&amp;nbsp; I'm not sure what the issue is, I tried adding MAUTOSOURCE (which I'm not sure if I wrote it correctly) and it didn't work.&amp;nbsp; The one solution did work is if I write "include...directory..macro name" but that takes too much time to keep writing when there's a new macro to be used.&lt;/P&gt;&lt;P&gt;Any suggestion would greatly help, thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error message:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_0-1644883582616.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68466i060318AC846216F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1644883582616.png" alt="HitmonTran_0-1644883582616.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;code&lt;/STRONG&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;%let wrk_folder=Working_Folder;
%let analydir=\\Biostatistics\Analysis\&amp;amp;wrk_folder;
%include "\\_dummy\programs\macros\U_setup.sas";*U_setup;
OPTIONS MAUTOSOURCE SASAUTOS=(SASAUTOS '\\_dummy\programs\macros');
%u_setup(&amp;amp;analydir);

************************************************************************
* Table 1 - Subject Disposition                                       *
************************************************************************;
data analset;
  set LIB_ADM.ADSL; 
run;

title4 j=c 'Table 1' ;
%s_dset (analset, ENSEAL,e);&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is where my global macros are stored:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_1-1644883682333.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68467iEDA90CD50EEE6141/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_1-1644883682333.png" alt="HitmonTran_1-1644883682333.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Feb 2022 00:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-MAUTOSOURCE/m-p/796181#M255466</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2022-02-15T00:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to use MAUTOSOURCE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-MAUTOSOURCE/m-p/796185#M255469</link>
      <description>&lt;P&gt;The structure of your code looks correct and I tested in OnDemand and it worked for me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;OPTIONS MAUTOSOURCE SASAUTOS=(SASAUTOS '/home/fkhurshed/Demo1/myMacros');&lt;BR /&gt;&lt;BR /&gt;%print(dsn=sashelp.class);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have anything in your %u_setup that may overwrite this?&lt;/P&gt;
&lt;P&gt;And is that the full file path in your example? If not, I'd definitely include the full file path as a start.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/111564"&gt;@HitmonTran&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an error message where I cannot call a global macro.&amp;nbsp; I'm not sure what the issue is, I tried adding MAUTOSOURCE (which I'm not sure if I wrote it correctly) and it didn't work.&amp;nbsp; The one solution did work is if I write "include...directory..macro name" but that takes too much time to keep writing when there's a new macro to be used.&lt;/P&gt;
&lt;P&gt;Any suggestion would greatly help, thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;error message:&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_0-1644883582616.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68466i060318AC846216F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1644883582616.png" alt="HitmonTran_0-1644883582616.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;STRONG&gt;code&lt;/STRONG&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;%let wrk_folder=Working_Folder;
%let analydir=\\Biostatistics\Analysis\&amp;amp;wrk_folder;
%include "\\_dummy\programs\macros\U_setup.sas";*U_setup;
OPTIONS MAUTOSOURCE SASAUTOS=(SASAUTOS '\\_dummy\programs\macros');
%u_setup(&amp;amp;analydir);

************************************************************************
* Table 1 - Subject Disposition                                       *
************************************************************************;
data analset;
  set LIB_ADM.ADSL; 
run;

title4 j=c 'Table 1' ;
%s_dset (analset, ENSEAL,e);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class=""&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is where my global macros are stored:&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HitmonTran_1-1644883682333.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68467iEDA90CD50EEE6141/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_1-1644883682333.png" alt="HitmonTran_1-1644883682333.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 00:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-MAUTOSOURCE/m-p/796185#M255469</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-15T00:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to use MAUTOSOURCE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-use-MAUTOSOURCE/m-p/796195#M255474</link>
      <description>&lt;P&gt;Also in the S_DSET program, the first line MUST have the statement - %macro s_dset(parameter1, parameter2, parameter3);&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 02:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-use-MAUTOSOURCE/m-p/796195#M255474</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-02-15T02:26:18Z</dc:date>
    </item>
  </channel>
</rss>

