<?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: ERROR: Shell escape is not valid in this SAS session. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937797#M368462</link>
    <description>&lt;P&gt;Talk to your SAS admim about the setting of XCMD or NOXCMD. If your admin has NOXCMD option set you cannot issue X commands and I believe that also affects the SYSTEM function or CALL SYSTEM call routines.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 16:41:38 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-07-31T16:41:38Z</dc:date>
    <item>
      <title>ERROR: Shell escape is not valid in this SAS session.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937781#M368455</link>
      <description>&lt;DIV&gt;Hola,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Al momento de ejecutar la macro que mueve los archivos antiguos y solo deja los nuevo, me saca error:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;WARNING: In a call to the CATT function, the buffer allocated for the result was not long enough to contain the concatenation of&lt;BR /&gt;all the arguments. The correct result would contain 265 characters, but the actual result might either be truncated to 200&lt;BR /&gt;character(s) or be completely blank, depending on the calling environment. The following note indicates the left-most&lt;BR /&gt;argument that caused truncation.&lt;BR /&gt;NOTE: Argument 4 to function CATT('move "','\\10.32.4.74'[12 de 200 caracteres mostrados],'" "','\\10.32.4.74'[12 de 102 caracteres&lt;BR /&gt;mostrados],'"') at line 43 column 103 is invalid.&lt;BR /&gt;ERROR: Shell escape is not valid in this SAS session.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura de pantalla 2024-07-31 112140.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98884i4A074F287D0EE791/image-size/large?v=v2&amp;amp;px=999" role="button" title="Captura de pantalla 2024-07-31 112140.png" alt="Captura de pantalla 2024-07-31 112140.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A continuación dejo el código&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;/* MACRO MUEVE ARCHIVO ANTIGUO&lt;/DIV&gt;&lt;DIV&gt;******************************/&lt;/DIV&gt;&lt;DIV&gt;%macro move_old_files(ruta_origen, ruta_destino, archivo_reciente);&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;data _null_;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; set file_list;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if fullpath ne "&amp;amp;archivo_reciente"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; then do;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; command = catt('move "', fullpath, '" "', "&amp;amp;ruta_destino",'"');&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;rc = system(command);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if rc = 0 then&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;put "moved: " fullpath " to " "&amp;amp;ruta_destino";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;else&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; put "failed to move: " fullpath " to " "&amp;amp;ruta_destino";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;end;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;%mend move_old_files;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;%move_old_files(&amp;amp;ruta_origen, &amp;amp;ruta_destino, &amp;amp;archivo_reciente);&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 16:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937781#M368455</guid>
      <dc:creator>jorge_garzon_co</dc:creator>
      <dc:date>2024-07-31T16:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937786#M368457</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/467738"&gt;@jorge_garzon_co&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"COD" is a very ambiguous topic title.&amp;nbsp; Do you have a question about the program you presented?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 16:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937786#M368457</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2024-07-31T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937792#M368460</link>
      <description>&lt;P&gt;If you have ERRORS in the Log show the LOG with the code and the error messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 16:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937792#M368460</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-31T16:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cod</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937794#M368461</link>
      <description>sorry, I already corrected the post,&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jul 2024 16:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937794#M368461</guid>
      <dc:creator>jorge_garzon_co</dc:creator>
      <dc:date>2024-07-31T16:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Shell escape is not valid in this SAS session.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937797#M368462</link>
      <description>&lt;P&gt;Talk to your SAS admim about the setting of XCMD or NOXCMD. If your admin has NOXCMD option set you cannot issue X commands and I believe that also affects the SYSTEM function or CALL SYSTEM call routines.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 16:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937797#M368462</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-31T16:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Shell escape is not valid in this SAS session.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937834#M368467</link>
      <description>&lt;P&gt;You work in a SAS session with option NOXCMD set.&lt;/P&gt;
&lt;P&gt;Either have XCMD enabled by your SAS administrators, or use a combination of FCOPY and FDELETE functions to perform the move.&lt;/P&gt;
&lt;P&gt;In the future, please post logs by cooy/pasting the text into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The "little running man" to the right is for posting SAS code. It provides coloring similar to the Enhanced Editor.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 21:41:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Shell-escape-is-not-valid-in-this-SAS-session/m-p/937834#M368467</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-07-31T21:41:06Z</dc:date>
    </item>
  </channel>
</rss>

