filename outfile 'output.dat'; data _null_; set dataset; file outfile; put var1 var2 var3; run;