<?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 Batch Processing with SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Batch-Processing-with-SAS/m-p/64544#M14038</link>
    <description>I am trying to run a batch file through the SAS session after it has run a SAS program. Using x command, this could be run. But what particular x command will run the bat say if I am having the batch file on a network drive “p:\sas\mybatch.bat”. I tried &lt;BR /&gt;
X call “p:\sas\mybatch.bat”; or call system(‘cd p:\sas\mybatch.bat’), but no luck. I guess I am missing something. Could you please help me to identify my mistake.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
 command ='cd' ||'c:sas\copy_datasets.bat';&lt;BR /&gt;
 call system (command);&lt;BR /&gt;
run;</description>
    <pubDate>Mon, 16 Aug 2010 19:42:26 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2010-08-16T19:42:26Z</dc:date>
    <item>
      <title>Batch Processing with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-Processing-with-SAS/m-p/64544#M14038</link>
      <description>I am trying to run a batch file through the SAS session after it has run a SAS program. Using x command, this could be run. But what particular x command will run the bat say if I am having the batch file on a network drive “p:\sas\mybatch.bat”. I tried &lt;BR /&gt;
X call “p:\sas\mybatch.bat”; or call system(‘cd p:\sas\mybatch.bat’), but no luck. I guess I am missing something. Could you please help me to identify my mistake.&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
 command ='cd' ||'c:sas\copy_datasets.bat';&lt;BR /&gt;
 call system (command);&lt;BR /&gt;
run;</description>
      <pubDate>Mon, 16 Aug 2010 19:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-Processing-with-SAS/m-p/64544#M14038</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-16T19:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-Processing-with-SAS/m-p/64545#M14039</link>
      <description>You first need to read the documentation more carefully.  The format for the X command does not include the "call".  It would be just&lt;BR /&gt;
&lt;BR /&gt;
x 'p:\sas\mybatch.bat';&lt;BR /&gt;
&lt;BR /&gt;
Also, the MS-DOS "CD" command takes as it's argument a directory rather than a file name.</description>
      <pubDate>Mon, 16 Aug 2010 21:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-Processing-with-SAS/m-p/64545#M14039</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2010-08-16T21:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Batch-Processing-with-SAS/m-p/64546#M14040</link>
      <description>Thanks. That worked!!</description>
      <pubDate>Tue, 17 Aug 2010 14:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Batch-Processing-with-SAS/m-p/64546#M14040</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-17T14:06:15Z</dc:date>
    </item>
  </channel>
</rss>

