<?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: Picking sas programs dynamically in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Picking-sas-programs-dynamically/m-p/473179#M285869</link>
    <description>&lt;P&gt;What I think you are looking for is a&amp;nbsp;"Relative Path" option for EG.&amp;nbsp; It can be found in EG under File&amp;gt;Project Properties&amp;gt;File References.&amp;nbsp; Using this option, EG looks for the SAS programs within the folder where EG is saved and up to one folder level deeper.&amp;nbsp;&amp;nbsp;I use this for my projects because I use Git for source control.&amp;nbsp; This way, anyone on their team can pull the project and run it without worrying about&amp;nbsp;which drive letter they saved the pulled project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The biggest challenge with using Dev/Test/Prod environments is not the SAS program file references, instead it is library references for where SAS data sets are saved to.&amp;nbsp; When using Dev/Test/Prod environments, the last thing you want to do is overwrite a file in production when you are currently trying to develop something.&amp;nbsp; My solution to this is to add a config file/process settings file to the beginning of the EG flow and then to update that file with the path to save/reference data sets.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I love talking about&amp;nbsp;how production analytics projects should not only be source controlled, but also they should be developed&amp;nbsp;with Dev/Test/Prod environments in mind.&amp;nbsp; Let me know if you have any questions.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jun 2018 21:31:08 GMT</pubDate>
    <dc:creator>Urban_Science</dc:creator>
    <dc:date>2018-06-25T21:31:08Z</dc:date>
    <item>
      <title>Picking sas programs dynamically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Picking-sas-programs-dynamically/m-p/473145#M285868</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to setup /Dev, /Test, /Prod folders (regions) in one single server to differentiate Dev, Test and Prod regions in our shop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to pick the .SAS program from these three different regions dynamically based on availability from a main program in an egp?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, below is how the programs live in the three regions.&lt;/P&gt;&lt;P&gt;/Dev&lt;/P&gt;&lt;P&gt;A.sas (calls B.sas)&lt;/P&gt;&lt;P&gt;main.sas (Calls A.sas)&lt;/P&gt;&lt;P&gt;/Test&lt;/P&gt;&lt;P&gt;A.sas (Calls B.sas)&lt;/P&gt;&lt;P&gt;B.sas (Calls C.sas)&lt;/P&gt;&lt;P&gt;main.sas (Calls A.sas)&lt;/P&gt;&lt;P&gt;/Prod&lt;/P&gt;&lt;P&gt;A.sas (Calls B.sas)&lt;/P&gt;&lt;P&gt;B.sas (Calls C.sas)&lt;/P&gt;&lt;P&gt;C.sas&lt;/P&gt;&lt;P&gt;main.sas (Calls A.sas)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i run main.sas from /Dev folder, it should pick A.sas from /Dev, B.sas from /Test and C.sas from /Prod folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 19:50:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Picking-sas-programs-dynamically/m-p/473145#M285868</guid>
      <dc:creator>Ramesh_165</dc:creator>
      <dc:date>2018-06-25T19:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Picking sas programs dynamically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Picking-sas-programs-dynamically/m-p/473179#M285869</link>
      <description>&lt;P&gt;What I think you are looking for is a&amp;nbsp;"Relative Path" option for EG.&amp;nbsp; It can be found in EG under File&amp;gt;Project Properties&amp;gt;File References.&amp;nbsp; Using this option, EG looks for the SAS programs within the folder where EG is saved and up to one folder level deeper.&amp;nbsp;&amp;nbsp;I use this for my projects because I use Git for source control.&amp;nbsp; This way, anyone on their team can pull the project and run it without worrying about&amp;nbsp;which drive letter they saved the pulled project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The biggest challenge with using Dev/Test/Prod environments is not the SAS program file references, instead it is library references for where SAS data sets are saved to.&amp;nbsp; When using Dev/Test/Prod environments, the last thing you want to do is overwrite a file in production when you are currently trying to develop something.&amp;nbsp; My solution to this is to add a config file/process settings file to the beginning of the EG flow and then to update that file with the path to save/reference data sets.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I love talking about&amp;nbsp;how production analytics projects should not only be source controlled, but also they should be developed&amp;nbsp;with Dev/Test/Prod environments in mind.&amp;nbsp; Let me know if you have any questions.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 21:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Picking-sas-programs-dynamically/m-p/473179#M285869</guid>
      <dc:creator>Urban_Science</dc:creator>
      <dc:date>2018-06-25T21:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Picking sas programs dynamically</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Picking-sas-programs-dynamically/m-p/473285#M285870</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/89585"&gt;@Urban_Science&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The biggest challenge with using Dev/Test/Prod environments is not the SAS program file references, instead it is library references for where SAS data sets are saved to.&amp;nbsp; When using Dev/Test/Prod environments, the last thing you want to do is overwrite a file in production when you are currently trying to develop something.&amp;nbsp; My solution to this is to add a config file/process settings file to the beginning of the EG flow and then to update that file with the path to save/reference data sets.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;...&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This problem can be partially solved by using different levels / configurations for each environment. Additionally developers should not have any access rights to production environments, preventing unwanted changes of data or code. Unfortunately all steps i can think of, aren't capable of solving all issues, e.g. if you are using libraries defined in metadata and multiple developers are working on the same project, i can see no way to prevent conflicts without using different library names and having to rename (edit code) before the project is moved to test/prod.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 09:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Picking-sas-programs-dynamically/m-p/473285#M285870</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-06-26T09:47:54Z</dc:date>
    </item>
  </channel>
</rss>

