<?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 Programs: Move file b/w directories: Error: &amp;quot;Shell escape is not valid in this SAS sess in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programs-Move-file-b-w-directories-Error-quot-Shell-escape/m-p/425857#M104910</link>
    <description>&lt;P&gt;FCOPY&amp;nbsp; and/or PROC DOWNLOAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, it's common for server side installations to restrict access to the OS, and using OS commands, which is your current approach.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FCOPY uses SAS built in tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if your SAS has access to the directory, you should be able to export directly to there in the first place?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2018 19:05:20 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-08T19:05:20Z</dc:date>
    <item>
      <title>SAS Programs: Move file b/w directories: Error: "Shell escape is not valid in this SAS session"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programs-Move-file-b-w-directories-Error-quot-Shell-escape/m-p/425851#M104909</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a SAS program that is generating a csv report file and writing it to one of the work directory on server. I want the created file to be copied or moved over to another directory on server. For this I added following lines of code to my existing code but it errors out with error message saying "&lt;STRONG&gt;Shell escape is not valid in this SAS session&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let dir1="%sysfunc(pathname(work))/FileName..csv";&lt;BR /&gt;%let dir2="//FileServerName/Dir1/XYZ/Reports/";&lt;BR /&gt;%sysexec move "&amp;amp;dir1" "&amp;amp;dir2";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other work around/ suggestions are most welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 18:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programs-Move-file-b-w-directories-Error-quot-Shell-escape/m-p/425851#M104909</guid>
      <dc:creator>Alok_Pal</dc:creator>
      <dc:date>2018-01-08T18:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programs: Move file b/w directories: Error: "Shell escape is not valid in this SAS sess</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programs-Move-file-b-w-directories-Error-quot-Shell-escape/m-p/425857#M104910</link>
      <description>&lt;P&gt;FCOPY&amp;nbsp; and/or PROC DOWNLOAD.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, it's common for server side installations to restrict access to the OS, and using OS commands, which is your current approach.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FCOPY uses SAS built in tools.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But if your SAS has access to the directory, you should be able to export directly to there in the first place?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 19:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programs-Move-file-b-w-directories-Error-quot-Shell-escape/m-p/425857#M104910</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-08T19:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Programs: Move file b/w directories: Error: "Shell escape is not valid in this SAS sess</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Programs-Move-file-b-w-directories-Error-quot-Shell-escape/m-p/425859#M104912</link>
      <description>I guess you probably have this issue:&lt;BR /&gt;&lt;A href="http://support.sas.com/kb/41/058.html" target="_blank"&gt;http://support.sas.com/kb/41/058.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you're running this in EG on a server, you'll need to talk to your SAS Admin about whether you can have the OPTIONS XCMD permitted or not.  If not, you'll have to find another option for this (such as running this command in a command file, .bat in SAS or a shell script in unix).</description>
      <pubDate>Mon, 08 Jan 2018 19:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Programs-Move-file-b-w-directories-Error-quot-Shell-escape/m-p/425859#M104912</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2018-01-08T19:05:50Z</dc:date>
    </item>
  </channel>
</rss>

