title: How to export SAS dataset to a .dat
body: <p>I have a  <a href="https://dl.dropboxusercontent.com/u/41007907/pressure.sas7bdat" rel="nofollow">SAS dataset <code>chapter5.pressure</code></a> and i verified that it is fine by printing it <code>proc print</code>:</p>
  
  <pre><code>                               Obs    SBPbefore    SBPafter
  
                                   1       120          128
                                   2       124          131
                                   3       130          131
                                   4       118          127
                                   5       140          132
                                   6       128          125
                                   7       140          141
                                   8       135          137
                                   9       126          118
                                  10       130          132
                                  11       126          129
                                  12       127          135
  </code></pre>
  
  <p>So, I want to export it to the <code>.dat</code> file, and the following method does not work:</p>
  
  <pre><code>libname chapter5 'c:\users\owner\desktop\sas\chapter5';
  
  data _null_;
  set chapter5.pressure;
  file 'c:\users\owner\desktop\sas\chapter5\xxx.dat';
  put a b ;
  run;
  </code></pre>
  
  <p>The resulting <a href="https://dl.dropboxusercontent.com/u/41007907/xxx.dat" rel="nofollow">file</a> has all missing values. Why</p>