Date: Thu, 23 May 1996 07:11:47 GMT
Reply-To: Netnews Server <NETNEWS@AMERICAN.EDU>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Netnews Server <NETNEWS@AMERICAN.EDU>
Organization: BASF Aktiengesellschaft
Subject: Re: Counting the number of observations
You can use the procedure PROC FREQ to count the number of elements.
Suppose you have a dataset TEST with a variable X. The following program
produces a
dataset FREQ which have the variables X, COUNT and PERCENT.
PROC FREQ DATA=TEST NOPRINT;
TABLES X / OUT=FREQ;
RUN;
To produce a dataset without the variable PERCENT use the dataset option
DROP=PERCENT for the output dataset FREQ.
Steffen
|