<?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: sasenv_local environment variable in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/625026#M20189</link>
    <description>&lt;P&gt;Thanks both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I have made a mistake initially that below that environment variable I had another entry that is pointing to old value and that overwrite the new value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So , After I have removed the old value from sasenv_local I can able to get my desired results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there is another problem related to same environmental variable. Initially I had a environmental variable in sasenv_local and that is common across two levels. But I don't want to share that across 2 level, so I have removed from the sasenv_local and in other level (level_env_usermods.sh ) I have added those env variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I started my new SAS EG session and check whether the variable is removed in one level. But still its referring the same value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even I restarted my object spawner to check again. But no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to find where the environment variable has been defined??? Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 15 Feb 2020 18:55:59 GMT</pubDate>
    <dc:creator>helannivas88</dc:creator>
    <dc:date>2020-02-15T18:55:59Z</dc:date>
    <item>
      <title>sasenv_local environment variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/623601#M19958</link>
      <description>&lt;P&gt;&lt;FONT size="2" color="#000080"&gt;Hi,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#000080"&gt;I have made a small changes in the environment variable defined in sasenv_local file. After saving the file, in order to check whether the changes has made reflected in our SAS session , I have ran the below query in a new SAS EG session&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#000080"&gt;X ' env &amp;gt;&amp;nbsp; /home/test/test.txt';&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#000080"&gt;But the output ofthat variable is not the latest and its still pointing to old value. ( May be the output from cache)?? Do i need to restart the object spawner to make that effect???&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" color="#000080"&gt;Please let me know. Thanks in advance.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 16:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/623601#M19958</guid>
      <dc:creator>helannivas88</dc:creator>
      <dc:date>2020-02-10T16:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: sasenv_local environment variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/623699#M19977</link>
      <description>&lt;P&gt;The environment of your workspace server is inherited from the objectspawner. Have you restarted the spawner after making the change?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 21:03:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/623699#M19977</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2020-02-10T21:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: sasenv_local environment variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/623761#M19989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/182470"&gt;@helannivas88&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have spawned a new SAS session and changes were saved successfully, it should work without restarting object spawner. I tested this and it works without any issue on SAS 9.4 LAX platform.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 06:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/623761#M19989</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-02-11T06:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: sasenv_local environment variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/624038#M20048</link>
      <description>Yes I stand corrected. Clearly something else must be the problem. Maybe the OP can comment?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;- Jan.</description>
      <pubDate>Tue, 11 Feb 2020 21:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/624038#M20048</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2020-02-11T21:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: sasenv_local environment variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/625026#M20189</link>
      <description>&lt;P&gt;Thanks both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I have made a mistake initially that below that environment variable I had another entry that is pointing to old value and that overwrite the new value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So , After I have removed the old value from sasenv_local I can able to get my desired results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there is another problem related to same environmental variable. Initially I had a environmental variable in sasenv_local and that is common across two levels. But I don't want to share that across 2 level, so I have removed from the sasenv_local and in other level (level_env_usermods.sh ) I have added those env variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then I started my new SAS EG session and check whether the variable is removed in one level. But still its referring the same value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even I restarted my object spawner to check again. But no luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to find where the environment variable has been defined??? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 18:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/625026#M20189</guid>
      <dc:creator>helannivas88</dc:creator>
      <dc:date>2020-02-15T18:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: sasenv_local environment variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/625034#M20191</link>
      <description>&lt;P&gt;Maybe it can help if you test your environment scripting by running them outside of SAS. You can source (execute in the current shell, not in a spawned one) and theen check the result. If you use the -x optionn you can follow what's happening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[sas@centos-sas94 Lev1]$  set -x
[sas@centos-sas94 Lev1]$ source /usr/local/SASConfig/Lev1/level_env.sh
+ source /usr/local/SASConfig/Lev1/level_env.sh
++ LEVEL_ROOT=/usr/local/SASConfig/Lev1
++ UTILITIES=/usr/local/SASHome/SASDeploymentManager/9.4/products/cfgwizard__94520__prt__xx__sp0__1/Utilities
++ DEPLOYWIZ=/usr/local/SASHome/SASDeploymentManager/9.4/products/deploywiz__94520__prt__xx__sp0__1/deploywiz
++ SAS_HOME=/usr/local/SASHome
++ JAVA_JRE_COMMAND=/usr/local/SASHome/SASPrivateJavaRuntimeEnvironment/9.4/jre/bin/java
++ SASVJR_HOME=/usr/local/SASHome/SASVersionedJarRepository
++ SASVJR_REPOSITORYPATH=/usr/local/SASHome/SASVersionedJarRepository/eclipse
++ SASWebInfrastructurePlatform_HOME=/usr/local/SASHome/SASWebInfrastructurePlatform/9.4
++ SASROOT=/usr/local/SASHome/SASFoundation/9.4
++ SAS_COMMAND=/usr/local/SASHome/SASFoundation/9.4/sas
++ . /usr/local/SASConfig/Lev1/level_env_usermods.sh
+++ CONTEXT_USERMODS_OPTIONS=
++ '[' -f /usr/local/SASConfig/Lev1/hadoop_env.sh ']'
+++ hostname
+++ awk -F. '{ printf $1 }'
++ SHOSTNAME=centos-sas94
++ SERVER_PID_FILE_NAME=server.centos-sas94.pid
++ export SERVER_PID_FILE_NAME
&lt;/PRE&gt;
&lt;P&gt;This is an example from my own test and experimentation machine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By running the script with "source" you can then test the variables with echo. Thsi approach has helped me many times resolving persky little mistakes in the past. I hope it willl help you as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Feb 2020 19:59:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/625034#M20191</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2020-02-15T19:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: sasenv_local environment variable</title>
      <link>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/625236#M20218</link>
      <description>You can also add your values in appserver_autoexec_usermods.sh file in order to cater for a particular config level LevN.</description>
      <pubDate>Mon, 17 Feb 2020 11:37:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/sasenv-local-environment-variable/m-p/625236#M20218</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2020-02-17T11:37:03Z</dc:date>
    </item>
  </channel>
</rss>

