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
SAS Super 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
deleted_user
Not applicable
That's great, thanks! Message was edited by: RobD

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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