<?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: SASCFGPATH in SAS 9.4 - order of execution? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731071#M21902</link>
    <description>&lt;P&gt;For the configuration files I have any control over - which is only the usable-writable ones - I have taken the approach of adding a -NOTE option showing the location, so I can just look at the log and see which configs were used and in what order.&amp;nbsp; I might try to get the SAS administrator to do the same thing in the system config files, as "where did that setting some from" questions come up fairly often.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 22:20:24 GMT</pubDate>
    <dc:creator>JackHamilton</dc:creator>
    <dc:date>2021-04-02T22:20:24Z</dc:date>
    <item>
      <title>SASCFGPATH in SAS 9.4 - order of execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/727246#M21815</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My out-of-the-box WorkspaceServer.sh script has this line for the SASCFGPATH:&lt;/P&gt;
&lt;PRE&gt;SASCFGPATH="$APPSERVER_ROOT/sasv9.cfg, $APPSERVER_ROOT/sasv9_usermods.cfg, $CONFIGDIR/sasv9.cfg, $CONFIGDIR/sasv9_usermods.cfg"
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To determine the order of execution of these config files, I added different settings to each of them and found out that this is the actual order of execution,&amp;nbsp;where the last one wins:&lt;/P&gt;
&lt;PRE&gt;1. $CONFIGDIR/sasv9.cfg
2. $CONFIGDIR/sasv9_usermods.cfg
3. $APPSERVER_ROOT/sasv9.cfg
4. $APPSERVER_ROOT/sasv9_usermods.cfg&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot relate that to the order in the SASCFGPATH string:&lt;/P&gt;
&lt;PRE&gt;SASCFGPATH="$APPSERVER_ROOT/sasv9.cfg, $APPSERVER_ROOT/sasv9_usermods.cfg, $CONFIGDIR/sasv9.cfg, $CONFIGDIR/sasv9_usermods.cfg"
&lt;/PRE&gt;
&lt;P&gt;I can't find official documentation on this setting, does anyone understand how this works?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason for asking is that my customer wants to add a custom sasv9.cfg file to his configuration and the question is where it should go.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Bart&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 21:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/727246#M21815</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2021-03-17T21:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: SASCFGPATH in SAS 9.4 - order of execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/727385#M21821</link>
      <description>&lt;P&gt;The order of operations for config files goes from most to least specific. That is:&lt;BR /&gt;1. An option given when executing the command (i.e. WorkspaceServer.sh -option)&lt;BR /&gt;2. The sasv9_usermods.cfg in WorkspaceServer directory ($CONFDIR/sasv9_usermods.cfg)&lt;BR /&gt;3. The sasv9.cfg file in the WorkspaceServer directory ($CONFDIR/sasv9.cfg)&lt;BR /&gt;4. The sasv9_usermods.cfg file in the application server context directory ($APPSERVER_ROOT/sasv9_usermods.cfg)&lt;BR /&gt;5. The sasv9.cfg file in the application server context directory ($APPSERVER_ROOT/sasv9.cfg)&lt;BR /&gt;6. The sasv9_local.cfg file in the SASHome/SASFoundation/9.4 directory&lt;BR /&gt;7. The sasv9.cfg file in the SASHome/SASFoundation/9.4 directory&lt;BR /&gt;&lt;BR /&gt;The _usermods and _local files are preserved through updates, so this is where any customizations would go. If you want to apply one to all SAS sessions it would be sasv9_local.cfg, if for all within a context (i.e. SASApp) it would be in SASApp/sasv9_usermods.cfg, and for just the Workspace Server it would be WorkspaceServer/sasv9_usermods.cfg.&lt;BR /&gt;&lt;BR /&gt;Configuration Files for Components of SAS Application Servers&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=bicdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=bisag&amp;amp;docsetTarget=p1n3ivrea2b8fgn1at5j88gyteqj.htm&amp;amp;locale=en#n12m6f0799b0s3n1r16azsfx8dv9" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/?cdcId=bicdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=bisag&amp;amp;docsetTarget=p1n3ivrea2b8fgn1at5j88gyteqj.htm&amp;amp;locale=en#n12m6f0799b0s3n1r16azsfx8dv9&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;This order matches the order of SASCFGPATH, with the last one being the last one applied. The sas executable in SASFoundation/9.4/ adds to the path values defined in WorkspaceServer.sh the sasv9 and sasv9_local files I mentioned in SASHome:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[sas@sgmmstr 9.4]$ pwd
/sas94/SASHome/SASFoundation/9.4
[sas@sgmmstr 9.4]$ grep sasv9 sas -C1
if [ "$SASCFGPATH" ] ; then
SASCFGPATH="!SASROOT/sasv9.cfg, !SASROOT/nls/en/sasv9.cfg, !SASROOT/sasv9_local.cfg, $SASCFGPATH"
else
SASCFGPATH="!SASROOT/sasv9.cfg, !SASROOT/nls/en/sasv9.cfg, !SASROOT/sasv9_local.cfg"
fi
[sas@sgmmstr 9.4]$&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Mar 2021 12:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/727385#M21821</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-03-18T12:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: SASCFGPATH in SAS 9.4 - order of execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/727401#M21826</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for you explanation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You write:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;This order matches the order of SASCFGPATH, with the last one being the last one applied.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That does not appear to be the case, as:&lt;/P&gt;
&lt;PRE&gt;SASCFGPATH="$APPSERVER_ROOT/sasv9.cfg, $APPSERVER_ROOT/sasv9_usermods.cfg, $CONFIGDIR/sasv9.cfg, $CONFIGDIR/sasv9_usermods.cfg"&lt;/PRE&gt;
&lt;P&gt;implies the order of execution would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;$APPSERVER_ROOT/sasv9.cfg&lt;/LI&gt;
&lt;LI&gt;$APPSERVER_ROOT/sasv9_usermods.cfg&lt;/LI&gt;
&lt;LI&gt;$CONFIGDIR/sasv9.cfg&lt;/LI&gt;
&lt;LI&gt;$CONFIGDIR/sasv9_usermods.cfg&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;where the last one wins,&amp;nbsp;where the order that I find - and would expect and that is documented - is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;$CONFIGDIR/sasv9.cfg&lt;/LI&gt;
&lt;LI&gt;$CONFIGDIR/sasv9_usermods.cfg&lt;/LI&gt;
&lt;LI&gt;$APPSERVER_ROOT/sasv9.cfg&lt;/LI&gt;
&lt;LI&gt;$APPSERVER_ROOT/sasv9_usermods.cfg&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;What I miss and have missed over time - and what the actual background of my question is - is a sasv9.cfg for the Lev, so $LEVEL_ROOT/sasv9.cfg and $LEVEL_ROOT/sasv9.cfg. The customer has now built that into every (Workspace|StoredProcess|PooledWorkspace)server.sh as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;SASCFGPATH="$LEVEL_ROOT/sasv9.cfg, $APPSERVER_ROOT/sasv9.cfg, $APPSERVER_ROOT/sasv9_usermods.cfg, $CONFIGDIR/sasv9.cfg, $CONFIGDIR/sasv9_usermods.cfg"&lt;/PRE&gt;
&lt;P&gt;How would you implement this using usermods files only?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for now mixing up 2 questions in 1 post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 13:42:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/727401#M21826</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2021-03-18T13:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: SASCFGPATH in SAS 9.4 - order of execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/727439#M21831</link>
      <description>The _usermods files should override options set in their associated non-usermods files. For example, if you specified -logconfigloc to point to logconfig.trace.xml, that is the log configuration that would be used instead of logconfig.xml specified in sasv9.cfg. If you set a different option in each file, the end result would be a session with all of those options applied, can you explain how you are determining the order in this case?&lt;BR /&gt;&lt;BR /&gt;There is no Lev1/sasv9.cfg or Lev1/sasv9_usermods.cfg file by default, but if they have added one to the sh files, that addition could be overwritten by updates to those files (e.g. installing a hotfix or update in place).&lt;BR /&gt;&lt;BR /&gt;Would adding the options in Lev1/sasv9.cfg instead to &amp;lt;SASHome&amp;gt;/SASFoundation/9.4/sasv9_local.cfg work for your purposes?&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2021 15:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/727439#M21831</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2021-03-18T15:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: SASCFGPATH in SAS 9.4 - order of execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/729214#M21869</link>
      <description>&lt;BLOCKQUOTE&gt;Would adding the options in Lev1/sasv9.cfg instead to &amp;lt;SASHome&amp;gt;/SASFoundation/9.4/sasv9_local.cfg work for your purposes?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I tried it out and it works. As it is unclear what the order or execution - and thus the order of precedence - of the files is, I cannot be sure this will always work but for now there are no options in&amp;nbsp;&amp;lt;SASHome&amp;gt;/SASFoundation/9.4/sasv9_local.cfg that also exist in other configuration files so it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 19:51:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/729214#M21869</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2021-03-25T19:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: SASCFGPATH in SAS 9.4 - order of execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731071#M21902</link>
      <description>&lt;P&gt;For the configuration files I have any control over - which is only the usable-writable ones - I have taken the approach of adding a -NOTE option showing the location, so I can just look at the log and see which configs were used and in what order.&amp;nbsp; I might try to get the SAS administrator to do the same thing in the system config files, as "where did that setting some from" questions come up fairly often.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 22:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731071#M21902</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2021-04-02T22:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: SASCFGPATH in SAS 9.4 - order of execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731466#M21908</link>
      <description>&lt;P&gt;That is a good idea except that a -NOTE in my sasv9_usermods.cfg gives me errors when starting SAS.&lt;/P&gt;
&lt;P&gt;Can you show me an example?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 21:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731466#M21908</guid>
      <dc:creator>bheinsius</dc:creator>
      <dc:date>2021-04-05T21:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: SASCFGPATH in SAS 9.4 - order of execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731484#M21909</link>
      <description>&lt;P&gt;Sorry, I shouldn't work from memory, I meant -ECHO&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;-echo "NOTE: Reading configuration options from ~/sasv9.cfg"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A problem is that this is unreliable.&amp;nbsp; Sometimes I see it, and sometimes I don't.&amp;nbsp; It must depend on something else in the environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 23:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731484#M21909</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2021-04-05T23:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: SASCFGPATH in SAS 9.4 - order of execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731485#M21910</link>
      <description>&lt;P&gt;Another option, not very clean, is to set SET options in your config files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in ~/.sasv9.sas&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;-set MY_DOT_SASV9_CFG_USED_1 1
-set MY_DOT_SASV9_CFG_USED_3 1
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in ~/sasv9.cfg&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;-set MY_SASV9_CFG_USED_2 1
-set MY_SASV9_CFG_USED_4 1
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In my SAS program:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=(set); run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The log shows&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 69         proc options option=(set); run;
 
     SAS (r) Proprietary Software Release 9.4  TS1M5
 
  SET=[SASROOT = /opt/sas94_install/sashome/compute/SASFoundation/9.4] [SASAUTOS = (                  '!SASROOT/sasautos'         )] 
 [SAMPsrc=(                  '!SASROOT/samples/accesssample'         '!SASROOT/samples/base'         '!SASROOT/samples/connect'    
      '!SASROOT/samples/dbi'         '!SASROOT/samples/dmine'         '!SASROOT/samples/dquality'         '!SASROOT/samples/ets'     
     '!SASROOT/samples/graph'         '!SASROOT/samples/hadoop'         '!SASROOT/samples/hpf'         '!SASROOT/samples/hps'        
  '!SASROOT/samples/hpstat'         '!SASROOT/samples/iml'         '!SASROOT/samples/intrnet'         '!SASROOT/samples/inttech'     
     '!SASROOT/samples/or'         '!SASROOT/samples/qc'         '!SASROOT/samples/share'         '!SASROOT/samples/stat'         
 '!SASROOT/samples/tmine'         )] [SAMPSIO = (                  '!SASROOT/samples/accesssample'         '!SASROOT/samples/base'   
       '!SASROOT/samples/connect'         '!SASROOT/samples/dbi'         '!SASROOT/samples/dmine'         
 '!SASROOT/samples/dquality'         '!SASROOT/samples/ets'         '!SASROOT/samples/graph'         '!SASROOT/samples/hadoop'       
   '!SASROOT/samples/hpf'         '!SASROOT/samples/hps'         '!SASROOT/samples/hpstat'         '!SASROOT/samples/iml'         
 '!SASROOT/samples/intrnet'         '!SASROOT/samples/inttech'         '!SASROOT/samples/or'         '!SASROOT/samples/qc'         
 '!SASROOT/samples/share'         '!SASROOT/samples/stat'         '!SASROOT/samples/tmine'         )] [SASHOME = 
 /opt/sas94_install/sashome/compute] [DTJ_CLASSPATH = 
 /opt/sas94_install/sashome/compute/SASFoundation/9.4/misc/dmine/dtj.jar:/opt/sas94_install/sashome/compute/SASPrivateJavaRuntimeEnvi
 ronment/9.4/jre/lib/rt.jar] [APFMTLIB = SASEnvironment/SASFormats] [MY_DOT_SASV9_CFG_USED_1 = 1] [MY_DOT_SASV9_CFG_USED_3 = 1] 
 [MY_SASV9_CFG_USED_2 = 1] [MY_SASV9_CFG_USED_4 = 1]
                    Defines an environment variable.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In this case, the values show up in the output in the order in which they were executed, not in alphabetical order.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 23:54:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731485#M21910</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2021-04-05T23:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: SASCFGPATH in SAS 9.4 - order of execution?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731486#M21911</link>
      <description>&lt;P&gt;It appears that the notes from -ECHO appear in the log in SAS for Windows, and in "traditional" sashome/.../bin/sas_en on Unix, but they do not show up when SAS is started through the load manager, e.g. sasgsub , even though the options are set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 00:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/SASCFGPATH-in-SAS-9-4-order-of-execution/m-p/731486#M21911</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2021-04-06T00:06:16Z</dc:date>
    </item>
  </channel>
</rss>

