From: Oleg on
You can also use NOPRINT option.

Proc univariate ... noprint;

Regards,
Oleg.
From: data _null_; on
On Mar 22, 9:35 pm, mitenko <mite...(a)gmail.com> wrote:
> On Mar 22, 5:15 pm, Andrew Karp Sierra Info Services
>
>
>
>
>
> <sfbay0...(a)aol.com> wrote:
> > Can you please clarify what you mean by "the univariate default
> > tables"?
>
> > Thanks,
>
> > Andrew Karp
> > Sierra Information Serviceshttp://www.sierrainformation.com
>
> > On Mar 22, 2:29 pm, mitenko <mite...(a)gmail.com> wrote:
>
> > > hi everyone,
>
> > > i'm just wondering if there's a way to turn off the univariate default
> > > tables. right now i'm only interested in using the output from the
> > > proc.
>
> > > cheers,
> > > dave
>
> sure. i just want to print a summary table of a categorical variable.
> all i really care about is the proc print statement at the end. i'm
> just wondering if there's a way to clean up the output so that the
> default tables generated by proc univariate (http://support.sas.com/
> documentation/cdl/en/procstat/63032/HTML/default/
> procstat_univariate_sect050.htm) are suppressed and all that i get at
> the end is the table.
>
> alternatively, is there a way to turn off ods html before proc
> univariate and then turn it back on?
>
> the code looks like this:
>
> title 'Descriptive Statistics by Year';
> proc sort data=mydata; by ZYEAR; run;
> proc univariate data=mydata;
>         by ZYEAR;
>         var WOOD_DUST LOG_DUST;
>         output out=desc N=N mean=Mean lnMean std=SD lnSD max=Max min=Min;
> run;
>
> /* modify the data for presentation */
> data desc; set desc;
> Year=ZYEAR+1979;
> GM=round(exp(lnMean),0.01);
> GSD=round(exp(lnSD),0.01);
> Mean=round(Mean,0.01);
> SD=round(SD,0.01);
> Max=round(Max,0.01);
> Min=round(Min, 0.01);
>
> proc print noobs data=desc;
>         var Year N Mean GM SD GSD Min Max;
> run;- Hide quoted text -
>
> - Show quoted text -

If you just want a data set and don't need any features of PROC
UNIVARIATE don't use univariate use PROC SUMMARY you don't have to
sort either.

data mydata;
do zyear = 1 to 10;
do _n_ = 1 to rantbl(12324,0,0,0,0,0,0,0,0,.4,.5);
wood_dust = rannor(12345)*10 + 50;
log_dust = rannor(12345)*4 + 20;
output;
end;
end;
run;
title 'Descriptive Statistics by Year';
proc summary data=mydata nway;
class ZYEAR;
var WOOD_DUST LOG_DUST;
output out=desc N=N mean=Mean lnMean std=SD lnSD max=Max min=Min;
run;

proc print;
run;