title: Convert multiple dta files to tab separated files in Stata
body: <p>Is there a way to convert a number of dta files to tab separated files at once, without loading each data set into Stata?</p>
  
  <p>Something like :</p>
  
  <pre><code>x&lt;- get *.dta filenames from directory
  foreach file_with_filename in x
       convert to tab separated file 
  </code></pre>
  
  <p>Apparently the <em>outsheet</em> function can be only used by referring to the dataset (or variable names) currently loaded in memory. </p>
  
  <p>Thanks.</p>