title: Saving results from SAS proc freq with multiple tables
body: <p>I'm a beginner in SAS and I have the following problem.</p>
  
  <p>I need to calculate counts and percents of several variables (A B C) from one dataset and save the results to another dataset. 
  my code is:</p>
  
  <p>proc freq data=mydata; 
  tables A B C / out=data_out ;  run;</p>
  
  <p>the result of the procedure for each variable appears in the SAS output window, but data_out contains the results only for the last variable. How to save them all in data_out? 
  Any help is appreciated.</p>