<?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 Re: Make only part of headers justified left by using PROC REPORT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/865992#M26228</link>
    <description>Hi: You don't show all your code or your ODS statements. What is your ODS destination of interest? ODS HTML, RTF, PDF, EXCEL??? &lt;BR /&gt;Cynthia</description>
    <pubDate>Thu, 23 Mar 2023 18:17:45 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2023-03-23T18:17:45Z</dc:date>
    <item>
      <title>Make only part of headers justified left by using PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/865988#M26227</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I would like to make only part of headers ("CTCAE" in my example) justified left and keep "Last Value Assessed" center justified by using PROC REPORT.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC REPORT data=reportDSN missing nowindows split='@'&lt;BR /&gt;style(header)=[just=c]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;style(report)=[outputwidth=100% rules=group frame=hsides background=white font_size=9pt]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;style(column)=[rules=group font_size=9pt] spanrows;&lt;BR /&gt;columns pagebreak grp ("&lt;STRONG&gt;CTCAE&lt;/STRONG&gt;" stat1) stat2 ("&lt;STRONG&gt;Last Value Assessed&lt;/STRONG&gt;"_1 _2 _3 _4 _5 _99);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 17:38:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/865988#M26227</guid>
      <dc:creator>Amine_Khemiri</dc:creator>
      <dc:date>2023-03-23T17:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Make only part of headers justified left by using PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/865992#M26228</link>
      <description>Hi: You don't show all your code or your ODS statements. What is your ODS destination of interest? ODS HTML, RTF, PDF, EXCEL??? &lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 23 Mar 2023 18:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/865992#M26228</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-03-23T18:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Make only part of headers justified left by using PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/865995#M26229</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Cynthia,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is a more complete code. ODS destination is rtf format.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for checking.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Amine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ods rtf file="&amp;amp;path.\table 1.rtf";&lt;/P&gt;&lt;P&gt;/* Proc report */&lt;BR /&gt;PROC REPORT data=reportDSN missing nowindows split='@'&lt;BR /&gt;style(header)=[rules=group frame=above verticalalign=top background=white&lt;BR /&gt;font_size=9pt just=l] style(report)=[outputwidth=100% rules=group frame=hsides&lt;BR /&gt;background=white font_size=9pt] style(column)=[rules=group font_size=9pt]&lt;BR /&gt;spanrows;&lt;BR /&gt;columns pagebreak grp ("CTCAE" stat1) stat2 ("Last Value Assessed"_1 _2 _3 _4 _5 _99);&lt;BR /&gt;define pagebreak/ order order=data noprint;&lt;BR /&gt;define grp / order order=data noprint;&lt;BR /&gt;define stat1 / "Treatment" display style(column)=[width=2.5cm asis=on just=l]&lt;BR /&gt;style(hdr)=[asis=on just=l];&lt;/P&gt;&lt;P&gt;define stat2 / "Baseline" display style(column)=[width=1.5cm just=l]&lt;BR /&gt;style(hdr)=[asis=on just=l];&lt;/P&gt;&lt;P&gt;define _1 / "&amp;lt;=Grade I^nn(%)" display style(column)=[width=1.5cm&lt;BR /&gt;just=c] style(hdr)=[asis=on just=c];&lt;/P&gt;&lt;P&gt;define _2 / "Grade II^nn(%)" display style(column)=[width=1.5cm just=c]&lt;BR /&gt;style(hdr)=[asis=on just=c];&lt;/P&gt;&lt;P&gt;define _3 / "Grade III^nn(%)" display style(column)=[width=1.5cm just=c]&lt;BR /&gt;style(hdr)=[asis=on just=c];&lt;/P&gt;&lt;P&gt;define _4 / "Grade IV^nn(%)" display style(column)=[width=1.5cm just=c]&lt;BR /&gt;style(hdr)=[asis=on just=c];&lt;/P&gt;&lt;P&gt;define _5 / "Missing^nn(%)" display style(column)=[width=1.5cm just=c]&lt;BR /&gt;style(hdr)=[asis=on just=c];&lt;/P&gt;&lt;P&gt;define _99 / "Total^nn(%)" display style(column)=[width=1.5cm just=c]&lt;BR /&gt;style(hdr)=[asis=on just=c];&lt;/P&gt;&lt;P&gt;break after pagebreak /page;&lt;BR /&gt;compute before grp;&lt;BR /&gt;line ' ';&lt;BR /&gt;endcomp;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;ods rtf close;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 19:58:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/865995#M26229</guid>
      <dc:creator>Amine_Khemiri</dc:creator>
      <dc:date>2023-03-23T19:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Make only part of headers justified left by using PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/866135#M26230</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks for the information. However, without data, it is impossible to use or run your example. Although, knowing that you were using ODS RTF is useful. The only way I know to do what you want is to make some "fake" headers by using helper variables that you create in a SAS dataset, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1679667235343.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82008i748108BA2A3E3863/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1679667235343.png" alt="Cynthia_sas_0-1679667235343.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The helper variables are CTHDR and LVHDR and each variable just contains the text string that you want to use as a spanning header. Then, I add those helper variables into the PROC REPORT COLUMN statement using the , operator, which indicates that their usage will be set to ACROSS in the DEFINE statement. Once these helper variables have their own DEFINE statement, I can change the justification for each one as needed. I'm showing the RTF file opened in WORD and in print preview, so you can see that the outputwidth stretches from margin to margin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Hope this gets you closer to what you want.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 14:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/866135#M26230</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-03-24T14:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Make only part of headers justified left by using PROC REPORT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/866147#M26231</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;Cynthia ! It works !!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Amine&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 15:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Make-only-part-of-headers-justified-left-by-using-PROC-REPORT/m-p/866147#M26231</guid>
      <dc:creator>Amine_Khemiri</dc:creator>
      <dc:date>2023-03-24T15:01:15Z</dc:date>
    </item>
  </channel>
</rss>

