BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,
Is it possible to change the standard output of a created cross-tabular?
I'd like to change the numbers with my own format and use more decimals than the standard.

/Nicolas
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
Yes, it is possible to change the format used for all the calculated/displayed numbers in a cross-tabular table. If you are using PROC TABULATE or the Summary Tables Task, this is very easy to do. To change ALL numeric formats in the table, if you right-click in the table, when you are in "design" mode on the Summary Tables dialog box, there will be a choice for "Table Properties" and under Table Properties pop up window, there will be a tab for "Formats" -- on this tab, you can choose the format and number of decimal places. You can also select a standard numeric format to use or a user-defined format. There are up and down arrows that allow you to select the format overall width and number of decimal places.

For example, if I pick an overall width of 12 and 3 decimal places, then this is what EG generates for the PROC TABULATE statement:
[pre]
PROC TABULATE DATA=XXXX.YYYY FORMAT=12.3 ;
[/pre]

If there is a particular row or column statistic that you want to give a separate format, then you might need to right click on a cell header and modify the "Data Properties" format to be a different format (such as a different format for a grand total or ALL column).

cynthia
deleted_user
Not applicable
Thanks a lot!
:-)

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
  • 2 replies
  • 686 views
  • 0 likes
  • 2 in conversation