<?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: Including modules and programs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445806#M111767</link>
    <description>&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2018 12:46:12 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-03-15T12:46:12Z</dc:date>
    <item>
      <title>Including modules and programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445764#M111748</link>
      <description>&lt;P&gt;I'm new to SAS EG and also new to IML. I have two similar problems that i have encountered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. %include does not seem to work as it did in sas base. There i would just give it the location of the sas file and it worked. How do i include a sas file in SAS EG?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Is there a way to import/include a module that is not defined inside the same proc iml; statement? I'd rather not define all my modules inside my "main" program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 09:58:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445764#M111748</guid>
      <dc:creator>jan_t_lagen</dc:creator>
      <dc:date>2018-03-15T09:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Including modules and programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445778#M111755</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. There is no difference between SAS base and EG regarding include statements.&lt;/P&gt;
&lt;P&gt;Maybe your SEG is configured to run program on a remote server. So you have either&lt;/P&gt;
&lt;P&gt;to deploy the programs you wish to include on the server or execute your programs&lt;/P&gt;
&lt;P&gt;locally. Check the menu Tools-&amp;gt;Connexions-&amp;gt;Servers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand your second question.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 10:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445778#M111755</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-03-15T10:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Including modules and programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445784#M111757</link>
      <description>&lt;P&gt;1. Okay, Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. I would like to do something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this part would optimally be in another file&lt;/P&gt;&lt;P&gt;/*******/&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;&amp;nbsp;start func1(x);&lt;/P&gt;&lt;P&gt;&amp;nbsp;..&lt;/P&gt;&lt;P&gt;&amp;nbsp;finish;&lt;/P&gt;&lt;P&gt;;quit;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/*******/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is in the main file:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/*******/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc iml;&lt;/P&gt;&lt;P&gt;&amp;nbsp;y = func1(x);&lt;/P&gt;&lt;P&gt;;quit;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/*******/&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 11:05:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445784#M111757</guid>
      <dc:creator>jan_t_lagen</dc:creator>
      <dc:date>2018-03-15T11:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Including modules and programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445786#M111758</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File c:\temp\func.sas&lt;/P&gt;
&lt;P&gt;----------------&lt;/P&gt;
&lt;P&gt;start func1(x);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;finish;&lt;/P&gt;
&lt;P&gt;---------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;File main.sas&lt;/P&gt;
&lt;P&gt;-------------------------&lt;/P&gt;
&lt;P&gt;proc iml;&lt;/P&gt;
&lt;P&gt;%include "c:\temp\func.sas";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;y = func1(x);&lt;/P&gt;
&lt;P&gt;;quit;&lt;/P&gt;
&lt;P&gt;--------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 11:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445786#M111758</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-03-15T11:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Including modules and programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445806#M111767</link>
      <description>&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 12:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445806#M111767</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-03-15T12:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Including modules and programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445812#M111773</link>
      <description>&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2013/10/07/create-function-library.html" target="_self"&gt;There are three common ways to store/load or %INCLUDE modules.&lt;/A&gt;&amp;nbsp;You can choose whichever one appeals to you.&lt;/P&gt;
&lt;P&gt;My favorite is to&lt;A href="https://blogs.sas.com/content/iml/2011/09/12/storing-and-loading-modules.html" target="_self"&gt;&amp;nbsp;use the STORE statement to store the modules&lt;/A&gt; to a library, then use the&amp;nbsp;LOAD statement to load them when needed. That way, the modules are parsed once and stored in compiled form. When they are loaded, they do not need to be re-parsed or re-compiled.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a lot of modules, you can &lt;A href="https://blogs.sas.com/content/iml/2012/05/31/an-easy-way-to-define-a-library.html" target="_self"&gt;use the _ALL_ keyword to store and load them all&lt;/A&gt;, thus saving some typing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 12:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Including-modules-and-programs/m-p/445812#M111773</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-03-15T12:54:40Z</dc:date>
    </item>
  </channel>
</rss>

