<?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: Display of headers in table using proc report in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884501#M349441</link>
    <description>&lt;P&gt;Not a very clear description of what you want. Do actually want the second column centered or not?&lt;/P&gt;
&lt;P&gt;Hard to test code without data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can override procedure level settings in the Display statement:&lt;/P&gt;
&lt;PRE&gt;define label / display "This is a header" style(column)={just=left cellwidth = 12.0 cm asis=on}
                                          style(header)={just=left}
;&lt;/PRE&gt;
&lt;P&gt;for example changes&amp;nbsp; the HEADER setting for Label to left justify leaving other settings alone.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2023 15:47:32 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-07-12T15:47:32Z</dc:date>
    <item>
      <title>Display of headers in table using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884487#M349435</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We want to produce a table where the first column header is aligned to the left but the second column header is centered. I have this code and I don't know how to change it to get the display I want. How can you modify? I am not familiar with proc report.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc report data= dsin nowd missing split = '~'
style(report)={frame=box}
style(header)={font=('Times New Roman', 8 pt) just=center background=lightgrey}
style(column)={font=('Times New Roman', 8 pt) just=left};
column label sample;
define label / display "This is a header" style(column)={just=left cellwidth = 12.0 cm asis=on};
define sample / display "sample" style(column)={just=center cellwidth = 3 cm};
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 14:40:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884487#M349435</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-07-12T14:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Display of headers in table using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884499#M349439</link>
      <description>&lt;P&gt;You should use style (header)= attributes in the define statements (which is individual) and remove justifications from the proc report statement (which is general).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data= dsin nowd missing split = '~'
style(report)={frame=box}
style(header)={font=('Times New Roman', 8 pt) background=lightgrey}
style(column)={font=('Times New Roman', 8 pt) };
column label sample;
define label / display "This is a header" style(header)= {just=left} style(column)={just=left cellwidth = 12.0 cm asis=on};
define sample / display "sample" style(header)= {just=center} style(column)={just=center cellwidth = 3 cm};
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 15:44:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884499#M349439</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2023-07-12T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Display of headers in table using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884500#M349440</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define label / display "This is a header" style(column)={just=left cellwidth = 12.0 cm asis=on};
define sample / display "sample" style(column)={just=center cellwidth = 3 cm};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Try this. Remove the location qualifier (column) from your style overrides in the DEFINE statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define label / display "This is a header" style={just=left cellwidth = 12.0 cm asis=on};
define sample / display "sample" style={just=center cellwidth = 3 cm};&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jul 2023 15:45:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884500#M349440</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2023-07-12T15:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display of headers in table using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884501#M349441</link>
      <description>&lt;P&gt;Not a very clear description of what you want. Do actually want the second column centered or not?&lt;/P&gt;
&lt;P&gt;Hard to test code without data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can override procedure level settings in the Display statement:&lt;/P&gt;
&lt;PRE&gt;define label / display "This is a header" style(column)={just=left cellwidth = 12.0 cm asis=on}
                                          style(header)={just=left}
;&lt;/PRE&gt;
&lt;P&gt;for example changes&amp;nbsp; the HEADER setting for Label to left justify leaving other settings alone.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2023 15:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884501#M349441</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-07-12T15:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Display of headers in table using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884503#M349442</link>
      <description>Thank you for replying!</description>
      <pubDate>Wed, 12 Jul 2023 16:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884503#M349442</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-07-12T16:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Display of headers in table using proc report</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884504#M349443</link>
      <description>Thank you!</description>
      <pubDate>Wed, 12 Jul 2023 16:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Display-of-headers-in-table-using-proc-report/m-p/884504#M349443</guid>
      <dc:creator>ANKH1</dc:creator>
      <dc:date>2023-07-12T16:02:09Z</dc:date>
    </item>
  </channel>
</rss>

