title: PROC UNIVARIATE: Output trimmed mean to dataset by id
body: <p>Following the question asked about throwing out the trimmed mean of the proc univariate in a table  : <br/>
  <a href="https://stackoverflow.com/questions/20007979/sas-proc-univariate-output-trimmed-mean-to-dataset">SAS: PROC UNIVARIATE: Output trimmed mean to dataset</a>
  </p>
  
  <p>I would like to  output  a trimmed mean from a proc univariate by group. However the ods output does not seem to work with noprint and there are just too many group id for it to work out . Any sidestep to this problem?</p>
  
  <pre><code>proc univariate data = Table1  idout trim=1;
  var DaysBtwPay;
  by id;
  trimmedmeans = trimMean2 (keep = id Mean stdMean);
  run;
  </code></pre>