Hello,
I have a problem with the ods pdf extract of my proc report.
I included the compute before _page_ statement in order to put a title to my proc report. The problem I am encountering is that if my title fits on one line, the table will be printed fitting the page width. However, if my title is on 2 lines, then it separates my table in 2. An example can be seen in the following picture.
I only include the proc report part of my program as I think the problem is in this procedure and I excluded the style component of the procedure to only concentrate on how it prints.
proc report nowd data = table_&&a._dept&&i._&&l. style=[background = white outputwidth=100%] style(report)={outputwidth=100%};
column (name &&t. &&u. &&v. &&w. &&x. &&y);
define name / display "";
define &&t. / display "&&n.";
define &&u. / display "&&o.";
define &&v. / display "&&p.";
define &&w. / display "&&q.";
define &&x. / display "&&r.";
define &&y. / display "&&s.";
compute before _page_ / style={fontfamily="times new roman" just=l fontsize=12pt background=white borderbottomcolor=white borderleftcolor=white borderrightcolor=white bordertopcolor=white color=black};
line "&&k.";
endcomp;
run;
Thank you in advance for your help!
You might be narrowing on the problem. I was attempting to write a title for my proc report. However, when I used the title "..."; statement right before the proc report, it was writing the title at the top of the page instead of above the table produced by proc report.
Would you know why, when creating a pdf file with ods pdf, the title statement before a proc report writes the title at the top of the page instead of right above the table?
Thank you
It looks as if the break takes place because the entry in column 1 is too long for the table to fit, not because of the titles.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.