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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

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