Date: Mon, 6 Dec 1999 11:55:35 -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: formating freqs
Content-Type: text/plain; charset="iso-8859-1"
From: Quentin McMullen [mailto:Quentin_McMullen@ABTASSOC.COM]
/Is there any way to format the values in a p*q frequency table
/created by proc freq?
/Typically these values are just counts,
/but with a weight statement they are no longer necessarily integers.
/I want to format them something like comma8.
I don't know if you can fomat the variable Count in proc FREQ
try this:
proc FREQ
format Count comma8.;
if that doesn't work you'll need an output data set:
proc FREQ data = WHATEVER;
weight Var0;
tables Var1 * Var2 / list missing out = FREQ;
proc PRINT data = FREQ;
format Count comma8.;
you'll notice right away that there is no cumulative Count and Percent.
You could accumulate those vars in a simple data step before the proc PRINT
Ron Fehd the macro maven CDC Atlanta GA USA