<?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: formatting titles in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/formatting-titles/m-p/57630#M6935</link>
    <description>[pre]&lt;BR /&gt;
data temp;&lt;BR /&gt;
 length _name $ 20;&lt;BR /&gt;
 set sashelp.class;&lt;BR /&gt;
 if _n_ in ( 2 4 6 8 10 ) then _name=cat('         ',name);&lt;BR /&gt;
  else _name=name;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf file='c:\title.pdf' style=sasweb;&lt;BR /&gt;
ods escapechar='~';&lt;BR /&gt;
title  j=l '~S={asis=on background=darkblue foreground=white}'   '                                 font is white     ';&lt;BR /&gt;
proc report data=temp nowd ;&lt;BR /&gt;
column _name name weight;&lt;BR /&gt;
 define _name /display '   name   of' style( header column)={asis=on};&lt;BR /&gt;
 define name /display;&lt;BR /&gt;
 define weight/display;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
    <pubDate>Fri, 07 Jan 2011 01:09:22 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2011-01-07T01:09:22Z</dc:date>
    <item>
      <title>formatting titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/formatting-titles/m-p/57628#M6933</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I want to &lt;B&gt;align my title&lt;/B&gt; with the proc report that I have. I have so far left justified it which moves the title all the way to the left. One tip that I got from one of the SAS papers was to (pain stakingly) do:&lt;BR /&gt;
&lt;I&gt;"%str(              ) my title"&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
I also want to have the&lt;B&gt; background blue&lt;/B&gt; ( a small blue rectangular strip around the title) and the text white for the title.&lt;BR /&gt;
&lt;BR /&gt;
Any tips/ thoughts?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Sachin</description>
      <pubDate>Tue, 04 Jan 2011 06:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/formatting-titles/m-p/57628#M6933</guid>
      <dc:creator>SachinRuk</dc:creator>
      <dc:date>2011-01-04T06:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: formatting titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/formatting-titles/m-p/57629#M6934</link>
      <description>Hi:&lt;BR /&gt;
  I think that either changing the style template (depending on your destination of interest) or using ODS ESCAPECHAR funcationality will allow you to make the background of the title blue and the foreground of the title white. &lt;BR /&gt;
 &lt;BR /&gt;
  I'm not sure I understand what you mean when you say you want to align the title with PROC REPORT. What is your destination of interest?? HTML, RTF, PDF??? Can you share the code that you've tried -- you can use a simple PROC REPORT with your TITLE statement -- showing your ODS statements and your TITLE statement is what matters most.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 04 Jan 2011 06:56:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/formatting-titles/m-p/57629#M6934</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-01-04T06:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: formatting titles</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/formatting-titles/m-p/57630#M6935</link>
      <description>[pre]&lt;BR /&gt;
data temp;&lt;BR /&gt;
 length _name $ 20;&lt;BR /&gt;
 set sashelp.class;&lt;BR /&gt;
 if _n_ in ( 2 4 6 8 10 ) then _name=cat('         ',name);&lt;BR /&gt;
  else _name=name;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods pdf file='c:\title.pdf' style=sasweb;&lt;BR /&gt;
ods escapechar='~';&lt;BR /&gt;
title  j=l '~S={asis=on background=darkblue foreground=white}'   '                                 font is white     ';&lt;BR /&gt;
proc report data=temp nowd ;&lt;BR /&gt;
column _name name weight;&lt;BR /&gt;
 define _name /display '   name   of' style( header column)={asis=on};&lt;BR /&gt;
 define name /display;&lt;BR /&gt;
 define weight/display;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Fri, 07 Jan 2011 01:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/formatting-titles/m-p/57630#M6935</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-01-07T01:09:22Z</dc:date>
    </item>
  </channel>
</rss>

