<?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 Call System Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Call-System-Statement/m-p/56683#M12139</link>
    <description>I am looking to get a clarification with the set up of the Call System statement, when using a Window's command (md) to create a new directory.&lt;BR /&gt;
&lt;BR /&gt;
We are using SAS 8.2 in a Windows XP environment.&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;The statement works when I hard-code the full command string in a variable&lt;/U&gt;:&lt;BR /&gt;
&lt;BR /&gt;
command = 'md "\\prdausrvs02\homedir$\azl6y06\e\report store\sasout\reportstaging\tonysastest"';&lt;BR /&gt;
call system(command);&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;The statement does not compile when I build a concatenated string variable&lt;/U&gt;:&lt;BR /&gt;
&lt;BR /&gt;
OUTPUT1 = 'prdausrvs02\homedir$\azl6y06';&lt;BR /&gt;
path = '"\\' || trim(OUTPUT1) || '\e\report store\sasout\reportstaging\tonysastest2"';&lt;BR /&gt;
command = 'md ' || path;&lt;BR /&gt;
call system(command);&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;The log file lists this statement&lt;/U&gt;:&lt;BR /&gt;
NOTE: Invalid argument to function SYSTEM at line 479 column 9.&lt;BR /&gt;
&lt;BR /&gt;
The value of OUTPUT1 is in an input file of our environments.&lt;BR /&gt;
This is where we control output files for (prod/test/dev).</description>
    <pubDate>Thu, 23 Oct 2008 16:30:42 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-10-23T16:30:42Z</dc:date>
    <item>
      <title>Call System Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-System-Statement/m-p/56683#M12139</link>
      <description>I am looking to get a clarification with the set up of the Call System statement, when using a Window's command (md) to create a new directory.&lt;BR /&gt;
&lt;BR /&gt;
We are using SAS 8.2 in a Windows XP environment.&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;The statement works when I hard-code the full command string in a variable&lt;/U&gt;:&lt;BR /&gt;
&lt;BR /&gt;
command = 'md "\\prdausrvs02\homedir$\azl6y06\e\report store\sasout\reportstaging\tonysastest"';&lt;BR /&gt;
call system(command);&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;The statement does not compile when I build a concatenated string variable&lt;/U&gt;:&lt;BR /&gt;
&lt;BR /&gt;
OUTPUT1 = 'prdausrvs02\homedir$\azl6y06';&lt;BR /&gt;
path = '"\\' || trim(OUTPUT1) || '\e\report store\sasout\reportstaging\tonysastest2"';&lt;BR /&gt;
command = 'md ' || path;&lt;BR /&gt;
call system(command);&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;The log file lists this statement&lt;/U&gt;:&lt;BR /&gt;
NOTE: Invalid argument to function SYSTEM at line 479 column 9.&lt;BR /&gt;
&lt;BR /&gt;
The value of OUTPUT1 is in an input file of our environments.&lt;BR /&gt;
This is where we control output files for (prod/test/dev).</description>
      <pubDate>Thu, 23 Oct 2008 16:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-System-Statement/m-p/56683#M12139</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-10-23T16:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Call System Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-System-Statement/m-p/56684#M12140</link>
      <description>I ran your code in DMS SAS mode, and didn't get the NOTE, even if my search path does not match. If you attach the full log maybe there is a clue...&lt;BR /&gt;
&lt;BR /&gt;
One more straightforward solution is to use the DCREATE function.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Thu, 23 Oct 2008 20:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-System-Statement/m-p/56684#M12140</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2008-10-23T20:00:15Z</dc:date>
    </item>
  </channel>
</rss>

