<?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: Transfer an environnement variable unix into sas macro variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transfer-an-environnement-variable-unix-into-sas-macro-variable/m-p/374569#M24384</link>
    <description>&lt;P&gt;Are the variables case sensitive?&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2017 15:54:30 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-07-10T15:54:30Z</dc:date>
    <item>
      <title>Transfer an environnement variable unix into sas macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transfer-an-environnement-variable-unix-into-sas-macro-variable/m-p/374559#M24383</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I create a global environnement variable unix (env), I want to transfer this variable to a macro variable sas, i used this command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let person=%sysget(env);
%put &amp;amp;person;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the macro variable person is empty, when I put the environnement variable unix HOME instead of env, it's working !&amp;nbsp;&lt;/P&gt;&lt;P&gt;help me please !&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 15:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transfer-an-environnement-variable-unix-into-sas-macro-variable/m-p/374559#M24383</guid>
      <dc:creator>Asmam</dc:creator>
      <dc:date>2017-07-10T15:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer an environnement variable unix into sas macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transfer-an-environnement-variable-unix-into-sas-macro-variable/m-p/374569#M24384</link>
      <description>&lt;P&gt;Are the variables case sensitive?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 15:54:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transfer-an-environnement-variable-unix-into-sas-macro-variable/m-p/374569#M24384</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-10T15:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer an environnement variable unix into sas macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transfer-an-environnement-variable-unix-into-sas-macro-variable/m-p/374571#M24385</link>
      <description>&lt;P&gt;If you're using EG on windows with a Unix SAS server, the SAS environment is spinning up a workspace server session for your EG session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't think offhand how you could populate an environment variable in that workspace session. Could you perhaps have SAS read the value from a file instead?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 15:56:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transfer-an-environnement-variable-unix-into-sas-macro-variable/m-p/374571#M24385</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-07-10T15:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer an environnement variable unix into sas macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transfer-an-environnement-variable-unix-into-sas-macro-variable/m-p/374577#M24386</link>
      <description>&lt;P&gt;How are you getting this environment variable created? It would need to be in the unix shell that is launching the SAS workspace server that EG is connecting to in order to be visible to your SAS session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can use PIPE then you can have SAS ask Unix what environment variables exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile 'env' pipe;
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Jul 2017 16:04:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Transfer-an-environnement-variable-unix-into-sas-macro-variable/m-p/374577#M24386</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-07-10T16:04:06Z</dc:date>
    </item>
  </channel>
</rss>

