BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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.
3 REPLIES 3
deleted_user
Not applicable
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.
Cynthia_sas
Diamond | Level 26
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
deleted_user
Not applicable
That's great, thanks! Message was edited by: RobD

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1379 views
  • 0 likes
  • 2 in conversation