<?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: Proc stream: %include from folder in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Proc-stream-include-from-folder/m-p/183757#M4348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using &lt;SPAN style="font-family: 'courier new', courier; font-size: 16px; background-color: #ffffff;"&gt;FILENAME CODELIB '/myproject/folder/'; is even better since I can set a completely new working directory.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2015 08:15:40 GMT</pubDate>
    <dc:creator>Jorn</dc:creator>
    <dc:date>2015-03-02T08:15:40Z</dc:date>
    <item>
      <title>Proc stream: %include from folder</title>
      <link>https://communities.sas.com/t5/Developers/Proc-stream-include-from-folder/m-p/183754#M4345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have started creating a dynamics website using Stored processes and Proc stream.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to load a .sas stored process via the %include statement. Using the following code, everything works just fine when the sas file is in the root directory:&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14249670049066058" jivemacro_uid="_14249670049066058" modifiedtitle="true"&gt;
&lt;P&gt;label;&lt;/P&gt;
&lt;P&gt;%include MyProcess;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; line-height: 1.5em;"&gt;To organize the .sas files, I want to move them to sub folders. However I can't figure out how to specify this subfolder. I tried the following, but they don't work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%include SubFolder/MyProcess;&lt;/P&gt;&lt;P&gt;%include "SubFolder/MyProcess";&lt;/P&gt;&lt;P&gt;%include 'SubFolder/MyProcess';&lt;/P&gt;&lt;P&gt;%include "/SubFolder/MyProcess";&lt;/P&gt;&lt;P&gt;%include '/SubFolder/MyProcess';&lt;/P&gt;&lt;P&gt;%include SubFolde\MyProcess;&lt;/P&gt;&lt;P&gt;%include "SubFolder\MyProcess";&lt;/P&gt;&lt;P&gt;%include 'SubFolder\MyProcess';&lt;/P&gt;&lt;P&gt;%include "\SubFolder\MyProcess";&lt;/P&gt;&lt;P&gt;%include '\SubFolder\MyProcess';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not allowed to use hardcoded paths, so the documentation solution is not useable.&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#n0pabo6rw7osabn1kxgbbv6an03t.htm" title="http://support.sas.com/documentation/cdl/en/proc/67327/HTML/default/viewer.htm#n0pabo6rw7osabn1kxgbbv6an03t.htm"&gt;Base SAS(R) 9.4 Procedures Guide, Third Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 16:16:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-stream-include-from-folder/m-p/183754#M4345</guid>
      <dc:creator>Jorn</dc:creator>
      <dc:date>2015-02-26T16:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc stream: %include from folder</title>
      <link>https://communities.sas.com/t5/Developers/Proc-stream-include-from-folder/m-p/183755#M4346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use the relative path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 14:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-stream-include-from-folder/m-p/183755#M4346</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2015-02-27T14:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc stream: %include from folder</title>
      <link>https://communities.sas.com/t5/Developers/Proc-stream-include-from-folder/m-p/183756#M4347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use relative paths.&lt;/P&gt;&lt;P&gt;So to get a file from a sub-folder you could use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;%inc "subfolder/myfile.sas";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Note that SAS is happy to convert / to \ if you are running on Windows instead of Unix.&amp;nbsp; Or vice versa.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But they will be relative to the current working directory and not necessarily to the directory where the source code file is located.&lt;/P&gt;&lt;P&gt;In that case you might want to assign a fileref to the top level directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;FILENAME CODELIB '/myproject/folder/';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;%inc codelib("subfolder/myfile.sas");&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 15:29:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-stream-include-from-folder/m-p/183756#M4347</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-02-27T15:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc stream: %include from folder</title>
      <link>https://communities.sas.com/t5/Developers/Proc-stream-include-from-folder/m-p/183757#M4348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using &lt;SPAN style="font-family: 'courier new', courier; font-size: 16px; background-color: #ffffff;"&gt;FILENAME CODELIB '/myproject/folder/'; is even better since I can set a completely new working directory.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2015 08:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-stream-include-from-folder/m-p/183757#M4348</guid>
      <dc:creator>Jorn</dc:creator>
      <dc:date>2015-03-02T08:15:40Z</dc:date>
    </item>
  </channel>
</rss>

