What Proc Report code do I need to be able to center vertically align text, changing it from top to center alignment? Right now, in Proc Report, the default vertical alignment is top.
Thank you.
Hi @Sarah-R
You can use a style option in the PROC REPORT statement:
proc report data=/*your data*/ style(/*location*/)={verticalalign=middle};
.. where 'location' could be header, column, data, ...
For example, if you want to align columns headers, you can put : style(header)={verticalalign=middle}
Best,
Hi @Sarah-R
You can use a style option in the PROC REPORT statement:
proc report data=/*your data*/ style(/*location*/)={verticalalign=middle};
.. where 'location' could be header, column, data, ...
For example, if you want to align columns headers, you can put : style(header)={verticalalign=middle}
Best,
An alternative is height=.22in.
For example: style(column)={height=.22in}
or larger if the vertical alignment is not working, particularly in ods output.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.