<?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 executing a batch file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70888#M20423</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
How do i code in SAS to execute a batch file?</description>
    <pubDate>Fri, 11 Sep 2009 17:38:48 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-09-11T17:38:48Z</dc:date>
    <item>
      <title>executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70888#M20423</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
How do i code in SAS to execute a batch file?</description>
      <pubDate>Fri, 11 Sep 2009 17:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70888#M20423</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-11T17:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70889#M20424</link>
      <description>Hi:&lt;BR /&gt;
  Do you mean execute SAS in batch mode or execute a .BAT file???&lt;BR /&gt;
&lt;BR /&gt;
  I'll answer what I do for the 2nd possibility. When I execute a .BAT or .CMD file on Windows. For example, I have a .BAT file (MYCOPYLIST.BAT) that copies a list of files from one folder to a backup folder. I submit code like this in a SAS program:&lt;BR /&gt;
[pre]&lt;BR /&gt;
options noxwait noxsync;&lt;BR /&gt;
x 'c:\temp\mycopylist.bat';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                     &lt;BR /&gt;
To find out how to execute SAS in batch mode, you have to consult the SAS Companion for your operating system.&lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 11 Sep 2009 18:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70889#M20424</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-09-11T18:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70890#M20425</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thats exactly what I do with my batch file. I have a prod.bat on windows. I do not want to click it manually. Rather I would like to code a sas program and schedule it so that it can take care of executing the batch file (runprod.bat). Will this code of yours work for me?</description>
      <pubDate>Fri, 11 Sep 2009 19:21:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70890#M20425</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-09-11T19:21:18Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70891#M20426</link>
      <description>It depends on whether the X command is allowed (it's not usually allowed for EG, for example.)&lt;BR /&gt;
&lt;BR /&gt;
I don't use CHRON or a job scheduler. So I assume that if you scheduled the SAS program to run in batch that it would work. But, why not just schedule the .BAT job to run???&lt;BR /&gt;
&lt;BR /&gt;
You might want to work with Tech Support on this one. Or maybe someone else has experience with batch submitting programs with an X command.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 11 Sep 2009 19:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70891#M20426</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-09-11T19:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: executing a batch file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70892#M20427</link>
      <description>You can use the Windows Task Scheduler to schedule batch files. For more information, use Google to search for "windows schedule batch file" (without the quotes) or click Start-&amp;gt;Help and Support and then enter Task Scheduler in the search box.</description>
      <pubDate>Fri, 11 Sep 2009 19:45:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/executing-a-batch-file/m-p/70892#M20427</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2009-09-11T19:45:50Z</dc:date>
    </item>
  </channel>
</rss>

