|Date: ||Fri, 29 Sep 2000 13:49:06 -0400|
|Reply-To: ||Howard Schreier <Howard_Schreier@ITA.DOC.GOV>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||Howard Schreier <Howard_Schreier@ITA.DOC.GOV>|
|Subject: ||Re: How to omit N, min, max and Std in _stat_|
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
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;
> out = MEANS
> 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!*! <---