/*PRINT TABLE*/
ods escapechar="~";
options nodate;
options orientation=landscape leftmargin=0in pageno=1 rightmargin=0in topmargin=1in bottommargin=1in;
ods pdf startpage=never;
ods pdf file="output_path\output.pdf" notoc ;
title;
/* Display Header */
proc report data=header nowd style(report)={just=left};
column col1 col2;
define col1 / display ' ' style(column)=[cellwidth=2in font_size=9pt font_face=calibri background=#90D5FF font_weight=bold];
define col2 / display ' ' style(column)=[cellwidth=3in font_size=9pt font_face=calibri];
run;
/* Display Body */
proc report data=data nowd style(report)={just=left};
columns <column list>;
define column_1 / 'column 1' style(header)={font_size=7pt font_weight=bold background=#90D5FF} style(column)=[cellwidth = 0.4in font_size=7pt font_face=calibri];
define column_2 / 'column 2' style(header)={font_size=7pt font_weight=bold background=#90D5FF} style(column)=[cellwidth = .6in font_size=7pt font_face=calibri];
define column_3 / 'column 3' style(header)={font_size=7pt font_weight=bold background=#90D5FF} style(column)=[cellwidth = 1in font_size=7pt font_face=calibri];
define column_4 / 'column 4' style(header)={font_size=7pt font_weight=bold background=#90D5FF} style(column)=[cellwidth = 0.8in font_size=7pt font_face=calibri];
define column_5 / 'column 5' style(header)={font_size=7pt font_weight=bold background=#90D5FF} style(column)=[cellwidth = 0.7in font_size=7pt font_face=calibri];
run;
ods pdf close;
Hi @Ksharp
I tried this but the output remains the same.
ods pdf file="output_path\output.pdf" notoc startpage=no;
Regards.
That is due to you are using "orientation=landscape " option which leave no enough room to include the second table.
To make more room for second table ,try "papersize=(60in 80in)" option OR try "columns=2"option.
/*PRINT TABLE*/
ods escapechar="~";
options nodate;
options orientation=landscape papersize=A4 leftmargin=0in pageno=1 rightmargin=0in topmargin=1in bottommargin=1in;
ods pdf file="c:\temp\output.pdf" notoc startpage=no columns=2;
title;
/* Display Header */
proc report data=sashelp.class nowd style(report)={just=left};
run;
/* Display Body */
proc report data=sashelp.class nowd style(report)={just=left};
run;
ods pdf close;
Thanks @Ksharp
The new update partially works but i would want the output in the format below
instead of side by side.
Thanks again for your help.
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
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.