[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sas-l
Subject:    Re: How to omit N, min, max and Std in _stat_
From:       Howard Schreier <Howard_Schreier () ITA ! DOC ! GOV>
Date:       2000-09-29 17:49:06
[Download RAW message or body]

I like Ron's solution for the situation in which there is no other need for
the PROC MEANS output.

But perhaps the full output is required, but only part is to be exported.

Toni does not say what mechanism he is using for export. But it must somehow
reference the data set. So just code the DROP= data set option on that
reference.

On Thu, 28 Sep 2000 14:56:53 -0400, Fehd, Ronald J. <rjf2@CDC.GOV> wrote:

>> From: Toni Zhang [mailto:thesis8@HOTMAIL.COM]
>> I need to export a file that is a output data set from 'Proc
>> mean'. I wonder
>> if there is a way that it doesn't show 'N, min, max and Std'
>> in variable
>> _stat_. I tried to use
>
>
>> if _stat_ in (N, min, max, Std) then delete;
>
>this is a data step statement, it will not work in a proc.
>
>> However, it doesn't seem to work. Please help.
>
>tell MEANS what you want:
>proc MEANS data = WHATEVER;
>           var    ??;
>           class  CharVars;
>           output
>           out  = MEANS
>                  %*what.you.want.goes.here;
>           max  = Max.of.vars.in.var.statement
>           min  = Min.of.vars.in.var.statement
>           ;
>
>got to RTFM if you want a proc to do what you want.
>
>Ron Fehd  the macro maven  CDC Atlanta GA USA RJF2@cdc.gov
>OpSys: WinNT   Ver: 8.1
>---> cheerful provider of UNTESTED SAS code!*! <---

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic