<?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: WARNING: The argument to macro function %SYSGET is not defined as a system variable. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330486#M74150</link>
    <description>&lt;P&gt;The question is, are you defining the environment variable _call_list in the same or a parent context of the SAS process?&lt;/P&gt;
&lt;P&gt;Do you define _call_list in a script that then starts SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use UNIX environment variables as the sole source of control information for batch runs, and all works well.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2017 15:06:28 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-02-07T15:06:28Z</dc:date>
    <item>
      <title>WARNING: The argument to macro function %SYSGET is not defined as a system variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330448#M74134</link>
      <description>&lt;P&gt;I am exporting a variable called _call_list from unix to SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In unix ,&lt;/P&gt;&lt;P&gt;export _call_list=${&lt;SPAN&gt;_call_list&lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In SAS,&lt;/P&gt;&lt;P&gt;%global&amp;nbsp;&lt;SPAN&gt;call_list;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let call_list=%SYSGET(_call_list);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%put SEE THE value of &lt;SPAN&gt;call_list&lt;/SPAN&gt; is &amp;amp;&lt;SPAN&gt;call_list&lt;/SPAN&gt;. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Log:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MLOGIC(GET_VARS): %LET (variable name is CALL_LIST)&lt;BR /&gt;WARNING: The argument to macro function %SYSGET is not defined as a system variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did some research on this error:-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a000543699.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#a000543699.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;my query is how do we define a variable on the operating environment. Any pointers please?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 12:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330448#M74134</guid>
      <dc:creator>GunnerEP</dc:creator>
      <dc:date>2017-02-07T12:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The argument to macro function %SYSGET is not defined as a system variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330455#M74136</link>
      <description>&lt;P&gt;Sorry, your post makes no sense to me. &amp;nbsp;What are you trying to do, get the operating system? &amp;nbsp;If so then use &amp;amp;SYSCP or &amp;amp;SYSCPL:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://v8doc.sas.com/sashtml/macro/z1071968.htm" target="_blank"&gt;https://v8doc.sas.com/sashtml/macro/z1071968.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 13:16:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330455#M74136</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-07T13:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The argument to macro function %SYSGET is not defined as a system variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330456#M74137</link>
      <description>&lt;P&gt;Reading a flat file in unix. Pick a value from a line from the txt file &amp;amp; pass the value on to SAS program.&lt;/P&gt;&lt;P&gt;Does it make any sense now ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 13:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330456#M74137</guid>
      <dc:creator>GunnerEP</dc:creator>
      <dc:date>2017-02-07T13:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The argument to macro function %SYSGET is not defined as a system variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330458#M74139</link>
      <description>&lt;P&gt;So you want to batch run a SAS program and pass in some paramters, then you would look at SYSPARM:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#n0u0t8c3b3syeen1l1rqh60ekmfz.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/hostwin/69955/HTML/default/viewer.htm#n0u0t8c3b3syeen1l1rqh60ekmfz.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This post has some links, and particularly the last post may be helpful.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/SYSPARM-Pass-Command-Line-Arguments-to-SAS/td-p/194511" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/SYSPARM-Pass-Command-Line-Arguments-to-SAS/td-p/194511&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note how the %sysget() is used in the code, you can't set a macro variable - which stores it as text - without using some masking features. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 13:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330458#M74139</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-02-07T13:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The argument to macro function %SYSGET is not defined as a system variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330466#M74143</link>
      <description>&lt;P&gt;I am not a unix expert and do not have access to a unix where I am right now, but try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;export&amp;nbsp; &lt;STRONG&gt;eval&lt;/STRONG&gt; _call_list=${&lt;SPAN&gt;_call_list&lt;/SPAN&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 14:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330466#M74143</guid>
      <dc:creator>MichaelLarsen</dc:creator>
      <dc:date>2017-02-07T14:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The argument to macro function %SYSGET is not defined as a system variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330486#M74150</link>
      <description>&lt;P&gt;The question is, are you defining the environment variable _call_list in the same or a parent context of the SAS process?&lt;/P&gt;
&lt;P&gt;Do you define _call_list in a script that then starts SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use UNIX environment variables as the sole source of control information for batch runs, and all works well.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330486#M74150</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-02-07T15:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The argument to macro function %SYSGET is not defined as a system variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330491#M74153</link>
      <description>&lt;P&gt;The error message is saying that the environment variable doesn't exist. That can either be because you spelled the name wrong or because it really doesn't exist. &amp;nbsp;If your SAS session lets you use pipes you can ask to see all of the environment variables using a simple data step like this.&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;
&lt;P&gt;Your shell command for creating the environment variable looks strange. Your statement is just reassigning the value to itself. Check and make sure you are using syntax that works for your Unix shell. Try something simple like this from the command line to set a value and display it.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;export _call_list=ABC
echo $_call_list&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Other ways to pass in information include using the -sysparm or -set options on the command that launches SAS. Or just placing the information into a file that the program knows read.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330491#M74153</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-02-07T15:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The argument to macro function %SYSGET is not defined as a system variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330503#M74160</link>
      <description>&lt;P&gt;Have you checked existence and value of the environment variable&lt;/P&gt;
&lt;P&gt;using&amp;nbsp;&lt;STRONG&gt;echo $_call_list&lt;/STRONG&gt; &amp;nbsp;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330503#M74160</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-02-07T15:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: The argument to macro function %SYSGET is not defined as a system variable.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330516#M74168</link>
      <description>&lt;P&gt;The problem was with the export statement in unix. Thanks for the pointer!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:40:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-The-argument-to-macro-function-SYSGET-is-not-defined-as/m-p/330516#M74168</guid>
      <dc:creator>GunnerEP</dc:creator>
      <dc:date>2017-02-07T16:40:23Z</dc:date>
    </item>
  </channel>
</rss>

