please see this two pictures and one changed rtf file. 1st picture is the one that is not changed with the "\cellx14350" and the margin area exists.2nd picture is changed to "\cellx14400" then the margin area disappeared and aligned rightly.
I was completely wrong. I finally understand the problem you are talking about.
However, in my environment, the header cells are set to full width without any problem.
I tested it with the following simple code.
options nodate nonumber;
ods _all_ close;
ods rtf;
title j=c 'TITLE' j=r 'page 1 or 1';
proc report data=sashelp.class;
run;
ods rtf close;
Can you please test it in your environment with this?
If there is still no extra space, then it is most likely a problem with the program.
For example, per proc report, define statement, style specification, etc.
You really should include your ODS RTF, or Tagsets.RTF, statment as well, better would be all code and some data that recreates the issue.
The STYLE in effect and other options on the ODS destination can affect a number of items.
I will not say just how much time I have spent fighting with WORD and anything placed in header or footer sections of a document.
The body of reports is very likely using a slightly different "area" of the document than the header. You might try the ODS option BODYTITLE.
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.