<?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: %include a file in a seprate location with a %sysget(SAS_EXECFILEPATH) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81898#M17693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alpay but I need it to work both ways and this will not work if I run the programs independently outside the master program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2012 13:10:35 GMT</pubDate>
    <dc:creator>pigface</dc:creator>
    <dc:date>2012-06-13T13:10:35Z</dc:date>
    <item>
      <title>%include a file in a seprate location with a %sysget(SAS_EXECFILEPATH)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81892#M17687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Morning all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a file that contains a load of %includes to different programs in different locations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In these programs there are fuctions that are supposed to get the path where that particular program is saved. However it only resoves the path where the %include program is saved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;This is program A saved here "C:\"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%include 'W:\B.sas';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is program B&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%let pig=%sysget(SAS_EXECFILEPATH);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%put &amp;amp;pig.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;When I run program A I get:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;C:\A.SAS&lt;/STRONG&gt; instead of what I want which is &lt;STRONG&gt;W:\B.SAS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pigface&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 08:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81892#M17687</guid>
      <dc:creator>pigface</dc:creator>
      <dc:date>2012-06-13T08:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: %include a file in a seprate location with a %sysget(SAS_EXECFILEPATH)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81893#M17688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really. How do you assign &lt;STRONG&gt;SAS_EXECFILEPATH? &lt;/STRONG&gt;Are you sure that is has the value of W:\B.SAS?&lt;/P&gt;&lt;P&gt;Running the job with &lt;EM&gt;options source2 mlogic;&lt;/EM&gt; would might help you to debug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 10:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81893#M17688</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2012-06-13T10:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: %include a file in a seprate location with a %sysget(SAS_EXECFILEPATH)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81894#M17689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run program B on its own not through a %include it returns the path where it is saved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run program A it calls program B via a %incude but brings back the path where progam A is saved when I want it to bring the path back where progam B is saved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 10:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81894#M17689</guid>
      <dc:creator>pigface</dc:creator>
      <dc:date>2012-06-13T10:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: %include a file in a seprate location with a %sysget(SAS_EXECFILEPATH)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81895#M17690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I guess(not tested)&amp;nbsp; your program B macros are included in Auto call libraries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also set that using options or directly in auto call library.&lt;/P&gt;&lt;P&gt; options set=Test "w:\&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;B.SAS&lt;/STRONG&gt;";&lt;/P&gt;&lt;P&gt; %let TEST=%sysfunc(sysget(TEST));&lt;/P&gt;&lt;P&gt; %PUT &amp;amp;TEST;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 11:35:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81895#M17690</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-06-13T11:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: %include a file in a seprate location with a %sysget(SAS_EXECFILEPATH)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81896#M17691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. No idea what auto call libaries are. It is just a nomal SAS progam saved in another folder on our drive&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I understand your workaround but what I really wanted is an option that automatically fixes this issue because I have many programs that I am refering to with the %include and hence want to ensure that any function such as %sysget refers to the path of that particualr program and not the master %include program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 11:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81896#M17691</guid>
      <dc:creator>pigface</dc:creator>
      <dc:date>2012-06-13T11:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: %include a file in a seprate location with a %sysget(SAS_EXECFILEPATH)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81897#M17692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the name of the running program by using filerefs inside included programs.&lt;/P&gt;&lt;P&gt;Here, the physical path is specified in a filename statement referred as fileref t and its path resolved using PATHNAME function in the included program(s).&lt;/P&gt;&lt;P&gt;This will work when filename t is assigned in another program and a.sas and b.sas are included.&lt;/P&gt;&lt;P&gt;If one executes a.sas alone filename t wouldn't have been assigned or coıuld have been assigned to another file in an interactive session. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Master program */&lt;/P&gt;&lt;P&gt;filename t "d:\temp\zip\a.sas";&lt;/P&gt;&lt;P&gt;%include t;&lt;/P&gt;&lt;P&gt;filename t "d:\temp\zip\b.sas";&lt;/P&gt;&lt;P&gt;%include t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* a.sas */&lt;/P&gt;&lt;P&gt;%let path = %SYSFUNC(PATHNAME(t,F));&lt;/P&gt;&lt;P&gt;%put path = &amp;amp;path;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* b.sas */&lt;/P&gt;&lt;P&gt;%let path = %SYSFUNC(PATHNAME(t,F));&lt;/P&gt;&lt;P&gt;%put path = &amp;amp;path;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 13:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81897#M17692</guid>
      <dc:creator>Alpay</dc:creator>
      <dc:date>2012-06-13T13:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: %include a file in a seprate location with a %sysget(SAS_EXECFILEPATH)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81898#M17693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alpay but I need it to work both ways and this will not work if I run the programs independently outside the master program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 13:10:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81898#M17693</guid>
      <dc:creator>pigface</dc:creator>
      <dc:date>2012-06-13T13:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: %include a file in a seprate location with a %sysget(SAS_EXECFILEPATH)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81899#M17694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New';"&gt;Call this macro as the first line in each INCLUDED file.&amp;nbsp; When you use the quoted filename syntax in your&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: navy; font-family: 'Courier New';"&gt;%INC 'program.sas';&amp;nbsp; SAS creates a FILEREF using the #LNnnnnnn naming convention.&amp;nbsp; It SHOULD be the fileref with the largest value each time.&amp;nbsp; Then you can query dictionary.extfiles for the LAST one created.&amp;nbsp; The example creates a macro variable but I suppose you could SET SAS_EXECFILEPATH if you wanted to.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;%macro&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; whereAmI(arg);&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;%global&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; includePath;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; includePath=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; proc sql outobs=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; nowarn;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select xpath into :includePath&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.extfiles&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where fileref eqt &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: purple; font-family: 'Courier New';"&gt;'#LN'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; order by fileref descending;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; background: white; color: blue; font-family: 'Courier New';"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; INCLUDEPATH=&amp;amp;includepath;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;%mend&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt; whereAmI;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background: white; color: black; font-family: 'Courier New';"&gt;An alternative that would be better would be to write a macro to "replace" %INC.&amp;nbsp; %XINC perhaps.&amp;nbsp; The macro would find the full path of the quoted file name and create a macro variable or SET an enviornment variable and then %INC the file.&amp;nbsp; The INCed could use the info as needed.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 13:26:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81899#M17694</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-06-13T13:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: %include a file in a seprate location with a %sysget(SAS_EXECFILEPATH)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81900#M17695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An alternative could be using a generic macro to check whether fileref t exists first in current session. &lt;/P&gt;&lt;P&gt;If so, get the PATHNAME associated with this fileref.&lt;/P&gt;&lt;P&gt;Otherwise, use SYSIN option's value (in batch mode) or SAS_EXECFILEPATH macro variable's value (in interactive mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Save this as getpath.sas and compile in your session */&lt;/P&gt;&lt;P&gt;%macro getpath;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %if %SYSFUNC(FEXIST(t)) %then %let path = %SYSFUNC(PATHNAME(t,F));&lt;/P&gt;&lt;P&gt;&amp;nbsp; %else %let Path = %SYSFUNC(IFC( "%SYSFUNC(GETOPTION(SYSIN))" ne "",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %SYSFUNC(GETOPTION(SYSIN)), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %SYSGET(SAS_EXECFILEPATH)));&lt;/P&gt;&lt;P&gt;&amp;nbsp; %put Path = &amp;amp;Path;&lt;/P&gt;&lt;P&gt;%mend;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Master program */&lt;/P&gt;&lt;P&gt;filename t "d:\temp\zip\a.sas";&lt;/P&gt;&lt;P&gt;%include t;&lt;/P&gt;&lt;P&gt;filename t "d:\temp\zip\b.sas";&lt;/P&gt;&lt;P&gt;%include t;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* a.sas */&lt;/P&gt;&lt;P&gt;%getpath;&lt;/P&gt;&lt;P&gt;%put 123;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* b.sas */&lt;/P&gt;&lt;P&gt;%getPath;&lt;/P&gt;&lt;P&gt;%put ABC;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 13:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81900#M17695</guid>
      <dc:creator>Alpay</dc:creator>
      <dc:date>2012-06-13T13:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: %include a file in a seprate location with a %sysget(SAS_EXECFILEPATH)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81901#M17696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks data_null_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that is a good workaround and seems to work if a run the program both in and out of the include&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would be interested to see if anyone else as any other ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pigface&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2012 14:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/include-a-file-in-a-seprate-location-with-a-sysget-SAS/m-p/81901#M17696</guid>
      <dc:creator>pigface</dc:creator>
      <dc:date>2012-06-13T14:03:15Z</dc:date>
    </item>
  </channel>
</rss>

