<?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: Alligning Individual column headers in proc report with .rtf ODS in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alligning-Individual-column-headers-in-proc-report-with-rtf-ODS/m-p/10090#M2988</link>
    <description>Hi:&lt;BR /&gt;
  STYLE(HEADER) in the PROC REPORT statement will impact ALL column headers on the report output. But you can also use STYLE(HEADER) on a DEFINE statement in order to impact just one variable's header.&lt;BR /&gt;
 &lt;BR /&gt;
  In the code below, I set OUTPUTWIDTH=100% so you can see the impact of the different justification options. Note how I can justify the individual headers separately from the data cells. Also, note how HEIGHT and WEIGHT use the default header justification in the absence of any other instructions on a DEFINE statement.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods rtf file='c:\temp\align_hdr.rtf';&lt;BR /&gt;
                &lt;BR /&gt;
proc report data=sashelp.class nowd&lt;BR /&gt;
     style(header)={just=c}&lt;BR /&gt;
     style(report)={outputwidth=100%};&lt;BR /&gt;
column name sex age height weight;&lt;BR /&gt;
define name / 'The Name' &lt;BR /&gt;
              style(header)={just=r}&lt;BR /&gt;
              style(column)={just=c};&lt;BR /&gt;
define sex / 'Gender' &lt;BR /&gt;
             style(header)={just=l}&lt;BR /&gt;
             style(column)={just=r};&lt;BR /&gt;
define age / 'Age' &lt;BR /&gt;
             style(header)={just=r}&lt;BR /&gt;
             style(column)={just=l};&lt;BR /&gt;
run;&lt;BR /&gt;
                     &lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Thu, 30 Sep 2010 21:26:06 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-09-30T21:26:06Z</dc:date>
    <item>
      <title>Alligning Individual column headers in proc report with .rtf ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alligning-Individual-column-headers-in-proc-report-with-rtf-ODS/m-p/10089#M2987</link>
      <description>In proc report  and rtf ODS, is there a way wherein I can allign each column header (Left, Right or center).  I know the style (header) gives us the option to allign all the coulmn headers, but not individual coulmn headers.&lt;BR /&gt;
&lt;BR /&gt;
I am using the following syntax for style (header) and defining columns.  I would like to left allign only the column header _NAME_ .&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
style(header)={BOTTOMMARGIN = 0IN cellheight=.15in font_face= "Times New Roman" font_size=9pt   background=_undef_ font_weight= medium textalign=left}&lt;BR /&gt;
&lt;BR /&gt;
columns  PAGEIT  PLAN  PARA OR VISIT1 P CL  _NAME_   ("^R/RTF'\brdrb\brdrs\brdrw1'Placebo &amp;amp;VAR2 |"  Placebo CPLAC) EMPTY ("^R/RTF'\brdrb\brdrs\brdrw1'SB-5090 &amp;amp;VAR3|" _60_mg C60MG)   ;</description>
      <pubDate>Thu, 30 Sep 2010 20:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alligning-Individual-column-headers-in-proc-report-with-rtf-ODS/m-p/10089#M2987</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-30T20:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alligning Individual column headers in proc report with .rtf ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alligning-Individual-column-headers-in-proc-report-with-rtf-ODS/m-p/10090#M2988</link>
      <description>Hi:&lt;BR /&gt;
  STYLE(HEADER) in the PROC REPORT statement will impact ALL column headers on the report output. But you can also use STYLE(HEADER) on a DEFINE statement in order to impact just one variable's header.&lt;BR /&gt;
 &lt;BR /&gt;
  In the code below, I set OUTPUTWIDTH=100% so you can see the impact of the different justification options. Note how I can justify the individual headers separately from the data cells. Also, note how HEIGHT and WEIGHT use the default header justification in the absence of any other instructions on a DEFINE statement.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods rtf file='c:\temp\align_hdr.rtf';&lt;BR /&gt;
                &lt;BR /&gt;
proc report data=sashelp.class nowd&lt;BR /&gt;
     style(header)={just=c}&lt;BR /&gt;
     style(report)={outputwidth=100%};&lt;BR /&gt;
column name sex age height weight;&lt;BR /&gt;
define name / 'The Name' &lt;BR /&gt;
              style(header)={just=r}&lt;BR /&gt;
              style(column)={just=c};&lt;BR /&gt;
define sex / 'Gender' &lt;BR /&gt;
             style(header)={just=l}&lt;BR /&gt;
             style(column)={just=r};&lt;BR /&gt;
define age / 'Age' &lt;BR /&gt;
             style(header)={just=r}&lt;BR /&gt;
             style(column)={just=l};&lt;BR /&gt;
run;&lt;BR /&gt;
                     &lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 30 Sep 2010 21:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alligning-Individual-column-headers-in-proc-report-with-rtf-ODS/m-p/10090#M2988</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-30T21:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alligning Individual column headers in proc report with .rtf ODS</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alligning-Individual-column-headers-in-proc-report-with-rtf-ODS/m-p/10091#M2989</link>
      <description>Thanks for the help.</description>
      <pubDate>Thu, 30 Sep 2010 22:20:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Alligning-Individual-column-headers-in-proc-report-with-rtf-ODS/m-p/10091#M2989</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-30T22:20:49Z</dc:date>
    </item>
  </channel>
</rss>

