Date: Mon, 31 Jan 2000 09:59:04 -0500
Reply-To: "Fehd, Ronald J." <rjf2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J." <rjf2@CDC.GOV>
Subject: Re: Number of discrete values?
Content-Type: text/plain; charset="windows-1252"
> From: Jim Groeneveld [mailto:J.Groeneveld@ITGROUPS.COM]
> I'll just give you some clue, no code:
> * get variable names from PROC CONTENTS
> * run PROC FREQ on each variable separately and write result to dataset
> * determine number of observations within that dataset (NOBS on SET)
> * combine variable name with nobs in a data step
BTDT: I have a macro %FREQOSSD that creates an output data set of all values
of every variable in a named data set. One could then do a freq of the
variable name from the output and get the number of discrete values of each
request privately to me if you want the macro.
Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov