title: .bat file not running SAS jobs
body: <p>This is my .bat file. When I run this inside a SAS program it starts 2 parallel processes and completes. But when I double click on the .bat file it flashes a black terminal and closes. Nothing runs. Please advise. </p>
  
  <pre><code>%let log= 'C:\Users\XXXXb\';
  
  %let loc1= 'C:\Users\XXXXb\Documents\My SAS Files\9.4\q2012.sas';
  %let loc2= 'C:\Users\XXXXb\Documents\My SAS Files\9.4\q2013.sas';
  
  
  systask command  "sas &amp;loc1  -log &amp;log.log "
           taskname=sas1
           status  =stat_sas1;
  systask command  "sas &amp;loc2  -log &amp;log.log "
           taskname=sas2
           status  =stat_sas2;
  waitfor _all_ sas1 sas2;
  </code></pre>