<?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 Run .bat file within SAS EG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Run-bat-file-within-SAS-EG/m-p/628047#M185509</link>
    <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw a few topics on this question, but I wasn't able to get anything to work for what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS Enterprise Guide, and I have a .bat file that runs a few things within SecureFX (transferring files between servers with the Synchronize function). Right now, I run a process in SAS, and then paste the .bat path in the start menu and run it afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to run my program, and within SAS, call this .bat file, similar to just running it with the command window? I tried a few things with the 'x' statement and sysexec, but nothing I've tried has worked so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if I can provide any additional detail, and thanks for any help you can provide!&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 21:03:03 GMT</pubDate>
    <dc:creator>derekcra</dc:creator>
    <dc:date>2020-02-27T21:03:03Z</dc:date>
    <item>
      <title>Run .bat file within SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-bat-file-within-SAS-EG/m-p/628047#M185509</link>
      <description>&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw a few topics on this question, but I wasn't able to get anything to work for what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS Enterprise Guide, and I have a .bat file that runs a few things within SecureFX (transferring files between servers with the Synchronize function). Right now, I run a process in SAS, and then paste the .bat path in the start menu and run it afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to run my program, and within SAS, call this .bat file, similar to just running it with the command window? I tried a few things with the 'x' statement and sysexec, but nothing I've tried has worked so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if I can provide any additional detail, and thanks for any help you can provide!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 21:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-bat-file-within-SAS-EG/m-p/628047#M185509</guid>
      <dc:creator>derekcra</dc:creator>
      <dc:date>2020-02-27T21:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Run .bat file within SAS EG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Run-bat-file-within-SAS-EG/m-p/628060#M185513</link>
      <description>&lt;P&gt;By default the ability to run operating system commands, including running BAT files is switched off. To confirm this run PROC OPTIONS and look for the XCMD option. If it is set to NOXCMD then it is switched off. You will need to get your SAS administrator to change this setting. A SAS user cannot change it.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 21:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Run-bat-file-within-SAS-EG/m-p/628060#M185513</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-02-27T21:58:58Z</dc:date>
    </item>
  </channel>
</rss>

