<?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 Why do we use %include? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754212#M237792</link>
    <description>Hello team, why we are using %include in sas? &lt;BR /&gt;&lt;BR /&gt;What are the options if we don’t want to use it?&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;Blueblue</description>
    <pubDate>Thu, 15 Jul 2021 01:06:43 GMT</pubDate>
    <dc:creator>GN0001</dc:creator>
    <dc:date>2021-07-15T01:06:43Z</dc:date>
    <item>
      <title>Why do we use %include?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754212#M237792</link>
      <description>Hello team, why we are using %include in sas? &lt;BR /&gt;&lt;BR /&gt;What are the options if we don’t want to use it?&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;Blueblue</description>
      <pubDate>Thu, 15 Jul 2021 01:06:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754212#M237792</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-07-15T01:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we use %include?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754215#M237795</link>
      <description>&lt;P&gt;%include is used to submit code stored in an external file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why? Many reasons are possible. One is that the code has been well debugged and doesn't need changes. So move to an external file so your current editor window isn't clogged up. Another just plain log code that doesn't change such as a bunch of format definitions.&lt;/P&gt;
&lt;P&gt;Another use so that multiple users can access the code in the same file and inherit any changes made without rewriting code (cautions apply to other dependencies).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 01:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754215#M237795</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-15T01:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we use %include?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754216#M237796</link>
      <description>&lt;P&gt;Why we are using %include in sas?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;To read in and run SAS code stored in another program file into the program with the %include statement.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are the options if we don’t want to use it?&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Copy the code that is in the other program and add it to the current program. The downside is you end up duplicating code all over your programs creating a potential&amp;nbsp; maintenance problem.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 01:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754216#M237796</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-07-15T01:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we use %include?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754217#M237797</link>
      <description>Thanks fir the response. Is it recommended to use?&lt;BR /&gt;Blueblue</description>
      <pubDate>Thu, 15 Jul 2021 01:40:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754217#M237797</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2021-07-15T01:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we use %include?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754221#M237800</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks fir the response. Is it recommended to use?&lt;BR /&gt;Blueblue&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the examples I provided, or similar ideas, apply then yes. %include is a very mature tool been around in SAS coding since at least the 1980's.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 02:23:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754221#M237800</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-15T02:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we use %include?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754261#M237811</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hello team, why we are using %include in sas? &lt;BR /&gt;&lt;BR /&gt;What are the options if we don’t want to use it?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you don't want to use it, you can set up an AUTOCALL library of macros (if you are talking about macros, you don't really say) and then you don't have to use %include each time you want to use a macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if your %include doesn't call in a macro, you could make it a macro.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see this thread for more details on the benefits of AUTOCALL compared to %include&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Help-Text-Documentation/m-p/753876#M237672" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/SAS-Macro-Help-Text-Documentation/m-p/753876#M237672&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 10:06:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754261#M237811</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-15T10:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why do we use %include?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754274#M237820</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/202329"&gt;@GN0001&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks fir the response. Is it recommended to use?&lt;BR /&gt;Blueblue&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Any supported feature of SAS (and this is supported) is "recommended to use".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whether or not it is a good idea to use it, or whether or not there are easier ways to do what you want, depends on a lot of things, including your situation and reason for using %include, which you have not explained.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 11:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-do-we-use-include/m-p/754274#M237820</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-15T11:31:50Z</dc:date>
    </item>
  </channel>
</rss>

