<?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: Enterprise Guide 7.1 Project to use Relative File Paths for Program in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/531888#M32953</link>
    <description>&lt;P&gt;Hi Geert,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you certain that you maintained the relative location between the .egp and the .sas files when you moved them?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if you start with something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;\Desktop\project.egp&lt;/P&gt;
&lt;P&gt;\Desktop\programs\program.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And project.egp has the "use relative paths" option on and the project has a reference to the program.sas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you then move both files to:&lt;/P&gt;
&lt;P&gt;\Desktop\temp\project.egp&lt;/P&gt;
&lt;P&gt;\Desktop\temp\programs\program.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you open the moved project and then double-click the referenced program.sas inside of it, EG should still find it in the new location, since it is still in the same location relative to the project file (ex. .\programs\program.sas).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works for me using EG 7.15. I can't think of anything that would override that setting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 05:22:05 GMT</pubDate>
    <dc:creator>CaseySmith</dc:creator>
    <dc:date>2019-02-01T05:22:05Z</dc:date>
    <item>
      <title>Enterprise Guide 7.1 Project to use Relative File Paths for Program</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/531043#M32937</link>
      <description>&lt;P&gt;I am trying to create a new project where we want the individual SAS programs to be in git. I am using the steps as described in this document:&lt;/P&gt;&lt;P align="left"&gt;Paper 179-2014&lt;/P&gt;&lt;P&gt;Check It Out! Versioning in SAS® Enterprise Guide®&lt;/P&gt;&lt;P&gt;(&lt;A href="http://support.sas.com/resources/papers/proceedings14/SAS179-2014.pdf" target="_blank" rel="noopener"&gt;http://support.sas.com/resources/papers/proceedings14/SAS179-2014.pdf&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, I changed the project setting to check the "&lt;EM&gt;Use paths relative to the project for programs and importable files",&amp;nbsp;&lt;/EM&gt;next,&amp;nbsp;I select a program and clicking on Properties &amp;gt;&amp;nbsp;"Save As..." so that it is no longer embedded. However, the file path it shows is still including my hard drive (C:\Users\xxxx\etcetera). I cannot change this field myself i have to click the Browse button.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am i missing here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jan 2019 15:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/531043#M32937</guid>
      <dc:creator>Jongen87</dc:creator>
      <dc:date>2019-01-29T15:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.1 Project to use Relative File Paths for Program</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/531490#M32947</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/258566"&gt;@Jongen87&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you noted, EG currently displays&amp;nbsp;the full path (ex. in the&amp;nbsp;&lt;STRONG&gt;File path&lt;/STRONG&gt; field in the Properties dialog for the program), even&amp;nbsp;when you have the File-&amp;gt;Project Properties-&amp;gt;File References-&amp;gt;&lt;STRONG&gt;Use paths relative to the project for programs and importable files&lt;/STRONG&gt; option checked,&amp;nbsp;but rest assured that it is stored as a relative path.&amp;nbsp; So, it should still work as you expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can confirm by moving your .egp and referenced .sas file to a new location...&amp;nbsp; as long as their relative locations are preserved, your EG project will still be able to locate the referenced .sas file (since it is storing and looking in the relative location rather than absolute path).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do think it would be more appropriate for that field to display just the relative path when the "use relative paths" option is on, to avoid the confusion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 22:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/531490#M32947</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2019-01-30T22:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.1 Project to use Relative File Paths for Program</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/531564#M32948</link>
      <description>&lt;P&gt;Hi Casey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I performed the test you specified and then, when i try to open the .sas program i get an error message saying that it cannot find the .sas file specified at the old directory (C:\....\.sas).&amp;nbsp;I doublechecked the project properties, the relative&amp;nbsp;file path option is checked. And relinking it, saving it and then trying to open it at the old location also does not&amp;nbsp;work. So i think it is somehow still storing the absolute path.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could there be any other options/settings that override this checkbox?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Geert&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 06:36:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/531564#M32948</guid>
      <dc:creator>Jongen87</dc:creator>
      <dc:date>2019-01-31T06:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.1 Project to use Relative File Paths for Program</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/531888#M32953</link>
      <description>&lt;P&gt;Hi Geert,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you certain that you maintained the relative location between the .egp and the .sas files when you moved them?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, if you start with something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;\Desktop\project.egp&lt;/P&gt;
&lt;P&gt;\Desktop\programs\program.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And project.egp has the "use relative paths" option on and the project has a reference to the program.sas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you then move both files to:&lt;/P&gt;
&lt;P&gt;\Desktop\temp\project.egp&lt;/P&gt;
&lt;P&gt;\Desktop\temp\programs\program.sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you open the moved project and then double-click the referenced program.sas inside of it, EG should still find it in the new location, since it is still in the same location relative to the project file (ex. .\programs\program.sas).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works for me using EG 7.15. I can't think of anything that would override that setting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Casey&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 05:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/531888#M32953</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2019-02-01T05:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise Guide 7.1 Project to use Relative File Paths for Program</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/532515#M32969</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did another test with a new file and now it works. I think that SAS stores some information in the project file and changing the project properties after it has already been saved once without the checkbox prevents it from switching to the relative mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i guess we need to recreate all the projects manually as modifying it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the answers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Geert&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 08:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Enterprise-Guide-7-1-Project-to-use-Relative-File-Paths-for/m-p/532515#M32969</guid>
      <dc:creator>Jongen87</dc:creator>
      <dc:date>2019-02-04T08:16:29Z</dc:date>
    </item>
  </channel>
</rss>

