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!
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.
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;
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.
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.