Same issue I am facing. I have several reports in one PDF. In these, I wanted to bold only the spanning text. So I used style option only once. That has bolded spanning text as well as headers (all the columns for all the reports). Now the issue was that I wanted to bold spanning text but not the other text in the headers (that is individual names of the columns). I am trying to unbold now but since long time I am not able to unbold it.
In short, I bolded headers once and when I am trying to unbold it, I am not able to do it. I request to kindly help me about it. Thanks in advance.
- Dr. Abhijeet Safai
Hi:
Column headers are usually bold by default in ODS PDF and using PROC REPORT, PROC PRINT, PROC TABULATE or most SAS procedures. That's in the style definition for Header style elements to be bold for the fontweight attribute. Here are several ways you can accomplish "unbolding":
Hope this helps,
Cynthia
Dear Madam,
Greetings!
Thanks a lot for the accurate information that the default behavior of header is bold in PDF. Also, the ways shown to change this behavior is very helpful.
Thanking you,
Yours sincerely,
- Dr. Abhijeet Safai
define abc / "Coulmn header" style(header)={font_weight=bold};
Please refer to the guidance you will find under the Post a question, or in the box that pops up. The quality of answers relies on the quality of questions, and barely a few words in a title is not sufficient,
Put a define in for each of columns and set the attributes on each define for each column, or put a style statement in the proc report statement for (header) and set font_weight to normal, then define the style for the variable you want. Or change your template to turn this off.
When asking a related question is considered best practice on this forum to start your own thread and then reference the other(s) by pasting a link. For one thing the creator of a thread has some options that contributors don't, such as marking a response as an accepted answer.
Second, posting code of exactly what you submitted, or a reduced version that has the same behavior means that we do not have to ask questions about basic things like "where in the code did you place the options controlling spanning text?". Best practice is to provide a small data set or use code with one of the SAS supplied datasets like SASHELP.CLASS so we can execute your code. Paste data step and procedure code into a text or code box opened on the forum with either the </> or "running man" icons that appear above the main message windows.
Dear Sir / Madam,
Greetings!
I will follow this guidance. I tried to create a new thread once, but somehow found it difficult. But I will search the ways to do it and will create new threads.
Thanking you,
Yours sincerely,
- Dr. Abhijeet Safai
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.