<?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 Left-Justify Spanning Header in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Left-Justify-Spanning-Header/m-p/72195#M8251</link>
    <description>Hello!&lt;BR /&gt;
&lt;BR /&gt;
I am looking to left justify a spanning header in proc report using RTF.  The lowest header I can get left justified by doing:&lt;BR /&gt;
&lt;BR /&gt;
define labTest  / order   style = [just = l] 'Laboratory Test';&lt;BR /&gt;
&lt;BR /&gt;
However, I cannot get something similar for a spanning header.  I've tried the code below and it does not work (for me).  ` is my escape character.&lt;BR /&gt;
&lt;BR /&gt;
columns ('`{style [just=left] Baseline Result}' baseInd fuInd);</description>
    <pubDate>Thu, 02 Jun 2011 17:58:23 GMT</pubDate>
    <dc:creator>Kastchei</dc:creator>
    <dc:date>2011-06-02T17:58:23Z</dc:date>
    <item>
      <title>Left-Justify Spanning Header</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Left-Justify-Spanning-Header/m-p/72195#M8251</link>
      <description>Hello!&lt;BR /&gt;
&lt;BR /&gt;
I am looking to left justify a spanning header in proc report using RTF.  The lowest header I can get left justified by doing:&lt;BR /&gt;
&lt;BR /&gt;
define labTest  / order   style = [just = l] 'Laboratory Test';&lt;BR /&gt;
&lt;BR /&gt;
However, I cannot get something similar for a spanning header.  I've tried the code below and it does not work (for me).  ` is my escape character.&lt;BR /&gt;
&lt;BR /&gt;
columns ('`{style [just=left] Baseline Result}' baseInd fuInd);</description>
      <pubDate>Thu, 02 Jun 2011 17:58:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Left-Justify-Spanning-Header/m-p/72195#M8251</guid>
      <dc:creator>Kastchei</dc:creator>
      <dc:date>2011-06-02T17:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: Left-Justify Spanning Header</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Left-Justify-Spanning-Header/m-p/72196#M8252</link>
      <description>Hi:&lt;BR /&gt;
  I can think of 2 methods:&lt;BR /&gt;
1) Left-justify the default for ALL headers, including the spanning header, in the PROC REPORT statement and then in the DEFINE statement, change the ones you do NOT want left justified;&lt;BR /&gt;
  &lt;BR /&gt;
2) use COMPUTE BEFORE _PAGE_ with a style override for the justification -- this will span ALL the columns in the column statement -- not just 2 columns, however.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods listing close; &lt;BR /&gt;
&lt;BR /&gt;
ods rtf file='c:\temp\usestyle1.rtf';&lt;BR /&gt;
title "1) Justify ALL the Headers Left and then change the ones you do NOT want left-just";&lt;BR /&gt;
proc report data=sashelp.class nowd&lt;BR /&gt;
     style(header)={just=l};&lt;BR /&gt;
  column ('BaseLine Results' age name) height weight;&lt;BR /&gt;
  define age / order style(header)={cellwidth=1.25in} 'Laboratory Test';&lt;BR /&gt;
  define name / display style(header)={cellwidth=1.25in} 'The Name';&lt;BR /&gt;
  define height / display style(header)={just=c cellwidth=1.25in};&lt;BR /&gt;
  define weight / display style(header)={just=c cellwidth=1.25in};&lt;BR /&gt;
run;      &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
      &lt;BR /&gt;
ods rtf file='c:\temp\usecompute2.rtf';&lt;BR /&gt;
title "2) Use COMPUTE BEFORE";&lt;BR /&gt;
proc report data=sashelp.class nowd&lt;BR /&gt;
     style(header)={just=l};&lt;BR /&gt;
  column age name height weight;&lt;BR /&gt;
  define age / order style(header)={cellwidth=1.25in} 'Laboratory Test';&lt;BR /&gt;
  define name / display style(header)={cellwidth=1.25in} 'The Name';&lt;BR /&gt;
  define height / display style(header)={just=c cellwidth=1.25in};&lt;BR /&gt;
  define weight / display style(header)={just=c cellwidth=1.25in};&lt;BR /&gt;
  compute before _page_/ style=Header{just=l};&lt;BR /&gt;
    line 'BaseLine Results';&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 02 Jun 2011 21:30:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Left-Justify-Spanning-Header/m-p/72196#M8252</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-06-02T21:30:47Z</dc:date>
    </item>
  </channel>
</rss>

