<?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: SAS Management Console: How capture Environment Variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835910#M330503</link>
    <description>&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;Thank you. That worked like a charm.&lt;/P&gt;&lt;P&gt;I was using an incorrect method (%sysfunc(getoption(TEST)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Troy&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 18:24:25 GMT</pubDate>
    <dc:creator>tborange</dc:creator>
    <dc:date>2022-09-29T18:24:25Z</dc:date>
    <item>
      <title>SAS Management Console: How capture Environment Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835900#M330498</link>
      <description>&lt;P&gt;I'm trying to capture Environment Variables that are defined in a SMC Flow&lt;/P&gt;&lt;P&gt;Below is a screen shot of a SMC Flow that I manually set the Environment Variable "TEST" to 123.&lt;/P&gt;&lt;P&gt;This Flow calls a SAS Program via an SMC Deployed Job.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question&lt;/STRONG&gt;: Is it possible for the SAS program to capture \ parse this environment variable?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tborange_0-1664473102386.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/75713i8D21E597C5A9320A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tborange_0-1664473102386.png" alt="tborange_0-1664473102386.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 17:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835900#M330498</guid>
      <dc:creator>tborange</dc:creator>
      <dc:date>2022-09-29T17:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console: How capture Environment Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835908#M330502</link>
      <description>&lt;P&gt;The &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/mcrolref/n19zyt041jjgs7n16ps5awotxnik.htm" target="_self"&gt;%SYSGET macro function&lt;/A&gt; can retrieve the value of system environment variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let val = %sysget(TEST);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Sep 2022 18:17:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835908#M330502</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-09-29T18:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console: How capture Environment Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835910#M330503</link>
      <description>&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;Thank you. That worked like a charm.&lt;/P&gt;&lt;P&gt;I was using an incorrect method (%sysfunc(getoption(TEST)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Troy&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 18:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835910#M330503</guid>
      <dc:creator>tborange</dc:creator>
      <dc:date>2022-09-29T18:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console: How capture Environment Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835914#M330504</link>
      <description>&lt;P&gt;You can also use the data step&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lefunctionsref/p14ppks96uz65an1l5uq3elm0m3y.htm" target="_blank" rel="noopener"&gt;SYSGET Function&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 18:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835914#M330504</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-09-29T18:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Management Console: How capture Environment Variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835921#M330506</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/251836"&gt;@tborange&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Chris,&lt;/P&gt;
&lt;P&gt;Thank you. That worked like a charm.&lt;/P&gt;
&lt;P&gt;I was using an incorrect method (%sysfunc(getoption(TEST)))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Troy&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The GETOPTION function only can get SAS system or graphics options such as are set with the OPTIONS or GOPTIONS statements. While the value of an environment variable might be able to set the value of an option you would have to query the for the Option that was set to see the value with Getoption.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 18:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Management-Console-How-capture-Environment-Variables/m-p/835921#M330506</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-09-29T18:57:55Z</dc:date>
    </item>
  </channel>
</rss>

