Hello, everyone!
I'm using proc report to create tables and I can't figure out how to vertically align the report in the middle of the page.
My data does not have a consistent number of rows and some of them only have 1 row while some can take up a whole page.
Here is a sample using sashelp.cars. The layout of my data is very similar to this.
data test1; set sashelp.cars;
run;
ods escapechar="^";
ods pdf file="D:\folders\myfolders\zzz test\test.pdf" uniform style=journal;
options leftmargin=0.25in rightmargin=0.25in topmargin=0.25in bottommargin=0.25in;
options nobyline nodate nonumber;
options missing="";
proc report data=test1
style(column)={fontsize=12pt}
style(header)={fontsize=13pt fontweight=bold fontstyle=roman}
style(report)={frame=void}
;
by make;
columns make model type origin drivetrain msrp;
define make / group noprint;
define origin / group noprint;
define model / display style=[width=3in];
define type / display style=[width=1.95in just=c];
define drivetrain / display style=[width=1.5in just=c];
define msrp / display style=[width=1.5in just=c];
compute before _page_ / center;
length text1 $300;
length text2 $300;
text1= " ^{style[font_size=24pt font_weight=bold]Make: } ^{style[font_size=24pt]" ||strip(make)|| "}";
text2= " ^{style[font_size=24pt font_weight=bold]Origin: } ^{style[font_size=24pt]" ||strip(origin)|| "}";
line text1 $300.;
line " ";
line text2 $300.;
line " ";
endcomp;
run;
ods pdf close;
Current result:

Wanted result:

I tried changing the top margin to something like 2in or adding multiple extra line " "; before the text but it's not the same as putting each table in the center of the page since each table does not have the same number of rows.
Thank you for the help!
Alfred