BookmarkSubscribeRSS Feed
nirali514
Obsidian | Level 7

Hello!

 

Per the picture below. Is there a way to get the 1,2,3 in the sample column to be in the center? Also, is there a way to get the footnote directly under the table? Thank you in advance!

 

 

pic.JPG

2 REPLIES 2
ballardw
Super User

Do you mean vertical center for the sample column? You might try a style override of verticalalign= m (m=> middle)

 

The space between a table and footnote depends on ODS destination and the PARSKIP setting in the active style. If you want text immediately below a table you might try a style override of PostText='your text' but I haven't used that with proc report so I'm not sure where in the syntax and if that will work.

lopezr
Obsidian | Level 7

You can use vjust=center in the style attributes of the column to center the values vertically. Also, one option to have the footnote directly below the table is to include it as part of your PROC REPORT call in a compute statement.

proc report data=sashelp.class spanrows
	style(column)={just=center};
	columns sex age weight;
	define sex/order left style(column)={VJUST=CENTER};
	compute after/style(lines)={just=left};
		line "Footnote here";
	endcomp;
run;

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 742 views
  • 0 likes
  • 3 in conversation