title: PROC MEANS Output MIN MAX MEDIAN for ALL numeric variables
body: <p>I have a similar situation to the question asked <a href="https://stackoverflow.com/questions/21732746/proc-means-output-data-set">here</a>.  However, I don't want to list my 300 variable names in the <code>var</code> statement since they are all unique.  Is there a way to use <code>proc means</code> or <code>proc summary</code> to output summary statistics for all the numeric variables in one data set?</p>
  
  <p>I've tried:</p>
  
  <pre><code>proc means data=my_data min median max;
      output out=summary_data min=min median=median max=max;
  run;
  </code></pre>
  
  <p>But this only outputs the summary statistics for the first variable.  I have also tried with the help of <code>ods trace</code>:</p>
  
  <pre><code>proc means data=my_data min median max;
      ods output Summary=summary_data;
  run;
  </code></pre>
  
  <p>Which gives me the summary statistics for all the variables, but still in one row:</p>
  
  <pre><code>VName_VAR1 VAR1_Minimum VAR1_Median VAR1_Maximum VName_VAR2 VAR2_Minimum etc...
  VAR1       3            3           3            VAR2       3         
  </code></pre>
  
  <p>Where my VAR names are all unique. Is there some other way to use <code>proc means</code> or <code>proc summary</code> to output summary statistics for all the numeric variables in one data set?</p>
  
  <p>UPDATE:</p>
  
  <p>When I removed <code>min=min median=median max=max</code>:</p>
  
  <pre><code>proc means data=my_data min median max;
      output out=summary_data;
  run;
  </code></pre>
  
  <p>The code then produces the output:</p>
  
  <pre><code> Obs  _TYPE_ _FREQ_ _STAT_   VAR_1    VAR_2 ... etc
  
   1    0      91     N          91.00  91    ... etc
   2    0      91     MIN      2005.00  13         .
   3    0      91     MAX      2014.00  13         .
   4    0      91     MEAN     2009.34  13         .
   5    0      91     STD         3.02   0
  </code></pre>
  
  <p>However, it still doesn't give me the MEDIAN.</p>