<?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: Help on how to run sas eg project at any location in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-on-how-to-run-sas-eg-project-at-any-location/m-p/503238#M32206</link>
    <description>&lt;P&gt;EG stores references to files in projects as absolute paths by default.&amp;nbsp; So if you move a file referenced in an EG project to another directory, or even rename any part of the containing directory path, EG will be unable to locate the referenced files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can update file references in EG projects via right-click the file node-&amp;gt;Properties-&amp;gt;Change, using Tools-&amp;gt;Project Maintenance, or the Migration Wizard (MigrationWizard.exe in EG installation directory).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, a better solution for this scenario... you can instruct an EG project to save file references as relative paths, rather than absolute paths, by checking the &lt;STRONG&gt;Use paths relative to the project for programs and importable files&lt;/STRONG&gt; option in File-&amp;gt;Project Properties-&amp;gt;File References.&amp;nbsp; This will allow you to move the EG project file (.egp) and the files it references anywhere you would like, as long as they stay in the same relative location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if this was your structure...&lt;/P&gt;
&lt;P&gt;c:\temp\Project.egp&lt;/P&gt;
&lt;P&gt;c:\temp\programs\code1.sas&lt;/P&gt;
&lt;P&gt;c:\temp\programs\code2.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could move them to...&lt;/P&gt;
&lt;P&gt;d:\newhome\SAS\Project.egp&lt;/P&gt;
&lt;P&gt;d:\newhome\SAS\programs\code1.sas&lt;/P&gt;
&lt;P&gt;d:\newhome\SAS\programs\code2.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... and the EG project would still find the referenced files (when the option above is checked on), since they are in the same relative location to the .egp file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
    <pubDate>Wed, 10 Oct 2018 20:53:46 GMT</pubDate>
    <dc:creator>CaseySmith</dc:creator>
    <dc:date>2018-10-10T20:53:46Z</dc:date>
    <item>
      <title>Help on how to run sas eg project at any location</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-on-how-to-run-sas-eg-project-at-any-location/m-p/502118#M32155</link>
      <description>&lt;P&gt;I am currently having problems regarding my SAS EG project. I created a SAS EG project and within the same directory, the data files are located. I copied the folder into another computer but when I tried to run the project, it doesn't run because apparently the "file is not located". Thank you for your answers.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 14:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-on-how-to-run-sas-eg-project-at-any-location/m-p/502118#M32155</guid>
      <dc:creator>heroic323</dc:creator>
      <dc:date>2018-10-06T14:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help on how to run sas eg project at any location</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-on-how-to-run-sas-eg-project-at-any-location/m-p/502122#M32156</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/238666"&gt;@heroic323&lt;/a&gt;please post the SAS error's and the SAS code that generated the error you are describing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Oct 2018 14:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-on-how-to-run-sas-eg-project-at-any-location/m-p/502122#M32156</guid>
      <dc:creator>VDD</dc:creator>
      <dc:date>2018-10-06T14:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Help on how to run sas eg project at any location</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-on-how-to-run-sas-eg-project-at-any-location/m-p/502923#M32185</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/238666"&gt;@heroic323&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am currently having problems regarding my SAS EG project. I created a SAS EG project and within the same directory, the data files are located. I copied the folder into another computer but when I tried to run the project, it doesn't run because apparently the "file is not located". Thank you for your answers.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Here are a few things to look at but likely not exhaustive. Some are operating system dependent.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you reference the path to the folder from a drive location (Windows) or a root mount point? Incomplete paths would use referential data and the two systems may not be executing from the same folder.&lt;/P&gt;
&lt;P&gt;Check spelling on the paths to be identical, to include case for Unix.&lt;/P&gt;
&lt;P&gt;If you are running in a server environment then user permissions may be different for another computer/user/login id.&lt;/P&gt;
&lt;P&gt;Is the other computer using the same server for SAS? If not then it is very likely the other server path or permissions do not match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 22:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-on-how-to-run-sas-eg-project-at-any-location/m-p/502923#M32185</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-09T22:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help on how to run sas eg project at any location</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-on-how-to-run-sas-eg-project-at-any-location/m-p/503238#M32206</link>
      <description>&lt;P&gt;EG stores references to files in projects as absolute paths by default.&amp;nbsp; So if you move a file referenced in an EG project to another directory, or even rename any part of the containing directory path, EG will be unable to locate the referenced files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can update file references in EG projects via right-click the file node-&amp;gt;Properties-&amp;gt;Change, using Tools-&amp;gt;Project Maintenance, or the Migration Wizard (MigrationWizard.exe in EG installation directory).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, a better solution for this scenario... you can instruct an EG project to save file references as relative paths, rather than absolute paths, by checking the &lt;STRONG&gt;Use paths relative to the project for programs and importable files&lt;/STRONG&gt; option in File-&amp;gt;Project Properties-&amp;gt;File References.&amp;nbsp; This will allow you to move the EG project file (.egp) and the files it references anywhere you would like, as long as they stay in the same relative location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if this was your structure...&lt;/P&gt;
&lt;P&gt;c:\temp\Project.egp&lt;/P&gt;
&lt;P&gt;c:\temp\programs\code1.sas&lt;/P&gt;
&lt;P&gt;c:\temp\programs\code2.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could move them to...&lt;/P&gt;
&lt;P&gt;d:\newhome\SAS\Project.egp&lt;/P&gt;
&lt;P&gt;d:\newhome\SAS\programs\code1.sas&lt;/P&gt;
&lt;P&gt;d:\newhome\SAS\programs\code2.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... and the EG project would still find the referenced files (when the option above is checked on), since they are in the same relative location to the .egp file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 20:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Help-on-how-to-run-sas-eg-project-at-any-location/m-p/503238#M32206</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2018-10-10T20:53:46Z</dc:date>
    </item>
  </channel>
</rss>

