<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Bold subheading in proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968463#M376577</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will like to bold the following sub-heading (Sex, Age category, Race/Ethnicity) and also remove the periods (.) each row in my proc report code. I have made multiple attempt but am not getting it. Please see my code below. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CathyVI_0-1749485244670.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107711i05DC5F1FC3F766FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CathyVI_0-1749485244670.png" alt="CathyVI_0-1749485244670.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc report data=case
style(report)=[background=white]
style(header)=[background=#919CB2 foreground=black borderstyle=hidden];
col Cat2 Y2020 Y2021 Y2022 Y2023 Y2024 Total;
define cat2/display 'Variable';&lt;BR /&gt;/*Make row headings bold and more readable*/
compute cat2;
if cat2 in('Sex' 'Age category' 'Race/Ethnicity' ) then do;
call define(_row_, "style", "style=[backgroundcolor=#DFE5E5 fontweight=bold]");
end;
endcomp;&lt;BR /&gt;/*Make the . disappear in the row headings*/&lt;BR /&gt;compute count;&lt;BR /&gt;if cat2 in('Sex' 'Age category' 'Race/Ethnicity') then do;&lt;BR /&gt;call define(_col_, "style", "style=[foreground=#DFE5E5]");&lt;BR /&gt;end;&lt;BR /&gt;endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 Jun 2025 16:14:30 GMT</pubDate>
    <dc:creator>CathyVI</dc:creator>
    <dc:date>2025-06-09T16:14:30Z</dc:date>
    <item>
      <title>Bold subheading in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968463#M376577</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will like to bold the following sub-heading (Sex, Age category, Race/Ethnicity) and also remove the periods (.) each row in my proc report code. I have made multiple attempt but am not getting it. Please see my code below. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CathyVI_0-1749485244670.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107711i05DC5F1FC3F766FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CathyVI_0-1749485244670.png" alt="CathyVI_0-1749485244670.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc report data=case
style(report)=[background=white]
style(header)=[background=#919CB2 foreground=black borderstyle=hidden];
col Cat2 Y2020 Y2021 Y2022 Y2023 Y2024 Total;
define cat2/display 'Variable';&lt;BR /&gt;/*Make row headings bold and more readable*/
compute cat2;
if cat2 in('Sex' 'Age category' 'Race/Ethnicity' ) then do;
call define(_row_, "style", "style=[backgroundcolor=#DFE5E5 fontweight=bold]");
end;
endcomp;&lt;BR /&gt;/*Make the . disappear in the row headings*/&lt;BR /&gt;compute count;&lt;BR /&gt;if cat2 in('Sex' 'Age category' 'Race/Ethnicity') then do;&lt;BR /&gt;call define(_col_, "style", "style=[foreground=#DFE5E5]");&lt;BR /&gt;end;&lt;BR /&gt;endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Jun 2025 16:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968463#M376577</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2025-06-09T16:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Bold subheading in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968464#M376578</link>
      <description>&lt;P&gt;Count is not a variable in the PROC REPORT definition. If I run your code with sample data without the Compute block for Count, those headings are bold.&lt;/P&gt;
&lt;P&gt;Here is the revised code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing=' ';
proc report data=case
style(report)=[background=white]
style(header)=[background=#919CB2 foreground=black borderstyle=hidden];
col Cat2 Y2020 Y2021 Y2022 Y2023 Y2024 Total;
define cat2/display 'Variable';

/*Make row headings bold and more readable*/
compute cat2;
if cat2 in('Sex' 'Age category' 'Race/Ethnicity' ) then do;
call define(_row_, "style", "style=[backgroundcolor=#DFE5E5 fontweight=bold]");
end;
endcomp;

/*Make the . disappear in the row headings*/
/*compute count;*/
/*if cat2 in('Sex' 'Age category' 'Race/Ethnicity') then do;*/
/*call define(_col_, "style", "style=[foreground=#DFE5E5]");*/
/*end;*/
/*endcomp;*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Which ODS destination are you using? Can you include a sample of the output?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 16:25:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968464#M376578</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-06-09T16:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bold subheading in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968466#M376579</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13770"&gt;@Kathryn_SAS&lt;/a&gt;&amp;nbsp; Yes, the heading (Variable, Y2020-Y2024, Total) are bold but i want to make ('Sex' 'Age category' 'Race/Ethnicity') bold too.&amp;nbsp; I am using ods excel as destination. The snippet I posted was my output. The&amp;nbsp;options missing=' '; has removed the (.) Now I want the SUB-heading; sex, age category and race/ethnicity to be bold. Thanks&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods excel file="Req/health_result.xlsx"
options(embedded_titles='yes' sheet_interval='NONE' sheet_name='Telehealth')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CathyVI_0-1749486960661.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107712i4CA08CE3407C2BD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CathyVI_0-1749486960661.png" alt="CathyVI_0-1749486960661.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 16:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968466#M376579</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2025-06-09T16:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bold subheading in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968467#M376580</link>
      <description>&lt;P&gt;The subheadings are bold for me with sample data. Make sure that the Cat2 values in the Compute block match the actual data values. You can also try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute cat2;
if strip(cat2) in('Sex' 'Age category' 'Race/Ethnicity' ) then do;
call define(_row_, "style", "style=[backgroundcolor=#DFE5E5 fontweight=bold]");
end;
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you continue to have problems, can you send your log and/or actual data?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 16:46:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968467#M376580</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-06-09T16:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bold subheading in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968468#M376581</link>
      <description>Thank you so much. Using the strip function makes it work.</description>
      <pubDate>Mon, 09 Jun 2025 16:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bold-subheading-in-proc-report/m-p/968468#M376581</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2025-06-09T16:51:24Z</dc:date>
    </item>
  </channel>
</rss>

