LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 1996, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page