<?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 call macros without using %INCLUDE Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/429275#M106018</link>
    <description>Thanks Rezza, this idea worked.</description>
    <pubDate>Fri, 19 Jan 2018 20:42:33 GMT</pubDate>
    <dc:creator>SangramjitPanda</dc:creator>
    <dc:date>2018-01-19T20:42:33Z</dc:date>
    <item>
      <title>How to call macros without using %INCLUDE Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/427344#M105375</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some concern on using macros in other sas program files but without using %INCLUDE statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requirement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sas macro named SendMail.sas which is used to sent out email notification, As of now I am using %INCLUDE statement to call this file in other SAS Program files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way I can directly use the macro without mentioning the %INCLUDE statements all the time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sangramjit&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 20:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/427344#M105375</guid>
      <dc:creator>SangramjitPanda</dc:creator>
      <dc:date>2018-01-12T20:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to call macros without using %INCLUDE Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/427347#M105377</link>
      <description>&lt;P&gt;IMHO, the use of auto call macros works well for me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n1o5fkxq0gqdpcn1xs3ksdks69tf.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=mcrolref&amp;amp;docsetTarget=n1o5fkxq0gqdpcn1xs3ksdks69tf.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 20:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/427347#M105377</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-12T20:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to call macros without using %INCLUDE Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/427349#M105378</link>
      <description>&lt;P&gt;Or do the %include within the autoexec so it's loaded when you start SAS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, this would be a production type usage, others who use your program may not know where the files are stored so I'd document it somehow within your programs. There are often questions on here about someone trying to find a former colleagues old macro definitions....&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/131205"&gt;@SangramjitPanda&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some concern on using macros in other sas program files but without using %INCLUDE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Requirement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a sas macro named SendMail.sas which is used to sent out email notification, As of now I am using %INCLUDE statement to call this file in other SAS Program files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way I can directly use the macro without mentioning the %INCLUDE statements all the time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sangramjit&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 20:28:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/427349#M105378</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-12T20:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to call macros without using %INCLUDE Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/429275#M106018</link>
      <description>Thanks Rezza, this idea worked.</description>
      <pubDate>Fri, 19 Jan 2018 20:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/429275#M106018</guid>
      <dc:creator>SangramjitPanda</dc:creator>
      <dc:date>2018-01-19T20:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to call macros without using %INCLUDE Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/429276#M106019</link>
      <description>Thanks novinosrin, I tested the autocall library approach by storing the macros at the ~/sasautos path. It worked fine.</description>
      <pubDate>Fri, 19 Jan 2018 20:44:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-call-macros-without-using-INCLUDE-Statement/m-p/429276#M106019</guid>
      <dc:creator>SangramjitPanda</dc:creator>
      <dc:date>2018-01-19T20:44:45Z</dc:date>
    </item>
  </channel>
</rss>

