<?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: using %include statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/333122#M272086</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/91804"&gt;@Malathi13&lt;/a&gt;: It's just a txt file that contains SAS statements. &amp;nbsp;See:&amp;nbsp;&lt;A href="http://support.sas.com/kb/19/244.html" target="_blank"&gt;http://support.sas.com/kb/19/244.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2017 19:25:14 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-02-15T19:25:14Z</dc:date>
    <item>
      <title>using %include statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/332806#M272081</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to store all my libraries in one %includes statement, I did that before but unable to think how I did that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of my libraries in sas 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname A "C:\\desktop\toys";&lt;/P&gt;&lt;P&gt;libname B "C:\\desktop\price";&lt;/P&gt;&lt;P&gt;libname C "C:\\desktop\orders";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to put all these libraries in %include so that I can just use one %include statement in my programs to access all these libraries instead of mentioning all the libraries again in the program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me in this? I know it is&amp;nbsp; very simple and easy but unable to figure out how I did before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 21:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/332806#M272081</guid>
      <dc:creator>Malathi13</dc:creator>
      <dc:date>2017-02-14T21:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: using %include statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/332810#M272082</link>
      <description>&lt;P&gt;Create a SAS program that contains all your library definitions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use %include to that program whenever you want to assign all libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're looking for this to occur automatically when you start SAS you need to modify your autoexec or config file. Usually you'll have access to an Autoexec but not necessarily the config file.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 21:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/332810#M272082</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-14T21:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: using %include statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/332813#M272083</link>
      <description>&lt;P&gt;Thank you Reeza, I figured out using %include immediately after posting it. Thank you for the automatic running of %include which I'll try and see if I can get it as I like the idea of making it run automatically when I start SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 22:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/332813#M272083</guid>
      <dc:creator>Malathi13</dc:creator>
      <dc:date>2017-02-14T22:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: using %include statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/333034#M272084</link>
      <description>there is a concept referred to as AUTOEXEC.&lt;BR /&gt;There you can store statements that will execute when SAS starts</description>
      <pubDate>Wed, 15 Feb 2017 15:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/333034#M272084</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-02-15T15:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: using %include statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/333078#M272085</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;can you provide me an example for autoexe. Do we have to make it a global option in the sas program and run it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;M&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 16:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/333078#M272085</guid>
      <dc:creator>Malathi13</dc:creator>
      <dc:date>2017-02-15T16:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: using %include statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/333122#M272086</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/91804"&gt;@Malathi13&lt;/a&gt;: It's just a txt file that contains SAS statements. &amp;nbsp;See:&amp;nbsp;&lt;A href="http://support.sas.com/kb/19/244.html" target="_blank"&gt;http://support.sas.com/kb/19/244.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH,&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/333122#M272086</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-02-15T19:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: using %include statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/333187#M272087</link>
      <description>&lt;P&gt;Whatever you add to an autoexec will get executed during SAS startup and will be applicable always.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For library assignments: You can do this in an autoexec but I'm kind of astonished that no one mentioned to do such an assignment via SAS Metadata Server (using SAS Management Console) as that's the place where this normally is done in a corporate environment.&lt;/P&gt;
&lt;P&gt;Using SAS Metadata also allows you to only get such assignments executed for certain metadata groups (ie. a department) and not the whole company.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Managing such company level SAS configurations is a SAS Administrator task. Contact yours if you've got such requirements.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/using-include-statement/m-p/333187#M272087</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-02-15T21:52:52Z</dc:date>
    </item>
  </channel>
</rss>

