Hi all,
I am trying to create a SAS report that has some pages with 2 columns with one centered header for the section. Code and output below:
ods pdf startpage = now;
ods pdf columns = 2;
ODS TEXT = "~{newline 1}";
ODS TEXT = "~{STYLE[JUST = C FONTWEIGHT = BOLD FONTSIZE = 12PT]Study Stop}";
ODS TEXT = "~{newline 1}";
proc sort data=current.status_file; by descending stop_date; run;
PROC REPORT DATA = current.status_file NOWD HEADLINE BOX SPLIT = "\";
column study_id stop_date ss_reason ssreas_othersp withdraw_reason;
where ss_reason ne .;
define study_id / center "ID";
define stop_date / center order = internal "Stop Date" format = MMDDYY10.;
define ss_reason / display center "Reason" format=ss.;
define ssreas_othersp / display center "Other reason";
define withdraw_reason / display center "Withdrawal Reason";
run;
ods pdf close;
![Corinthian94_0-1722521145713.png Corinthian94_0-1722521145713.png](https://communities.sas.com/t5/image/serverpage/image-id/98932i198D5750DE72776F/image-size/large?v=v2&px=999)
I am able to get two columns using ODS PFF columns=2, but this then puts the header over the first column instead of at the center at the top of the page. Is there a way to center this in the middle of the two columns? I have tried to find something but have not had any luck, and anything I try gets rid of the two columns which is more important for the formatting than the title being in the middle. Thanks in advance for your help!