Desktop productivity for business analysts and programmers

Format for Proc Freq

Reply
N/A
Posts: 0

Format for Proc Freq

Hi. I am running a proc freq and I would like to change the format of the results (e.g. I want to change the results to show only 1 decimal place and maybe a percentage sign after the value). Note that it is the results from the proc freq that I want to format, not the variable itself. Thanks.
N/A
Posts: 0

Re: Format for Proc Freq

You can output the results of the proc freq to a dataset and then use that dataset in a proc print or proc report where you can customize the results to your hearts content.
SAS Super FREQ
Posts: 8,820

Re: Format for Proc Freq

Hi:
You can either do as Chuck suggests and create your report from a dataset created by PROC FREQ or you can change the TABLE template for this run of PROC FREQ and tell the template what format to use for the calculated statistics. This Tech Support note talks about doing something simliar (it shows one decimal place but not the percent sign):
http://support.sas.com/kb/25/058.html

cynthia
N/A
Posts: 0

Re: Format for Proc Freq

That's great, thanks! Message was edited by: RobD
Ask a Question
Discussion stats
  • 3 replies
  • 146 views
  • 0 likes
  • 2 in conversation