The SAS Output Delivery System and reporting techniques

formatting titles

Reply
Contributor
Posts: 47

formatting titles

Hi All,

I want to align my title 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:
"%str( ) my title"

I also want to have the background blue ( a small blue rectangular strip around the title) and the text white for the title.

Any tips/ thoughts?

Thanks,
Sachin
SAS Super FREQ
Posts: 8,866

Re: formatting titles

Posted in reply to SachinRuk
Hi:
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.

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.

cynthia
Super User
Posts: 10,028

Re: formatting titles

Posted in reply to SachinRuk
[pre]
data temp;
length _name $ 20;
set sashelp.class;
if _n_ in ( 2 4 6 8 10 ) then _name=cat(' ',name);
else _name=name;
run;

ods pdf file='c:\title.pdf' style=sasweb;
ods escapechar='~';
title j=l '~S={asis=on background=darkblue foreground=white}' ' font is white ';
proc report data=temp nowd ;
column _name name weight;
define _name /display ' name of' style( header column)={asis=on};
define name /display;
define weight/display;
run;
ods pdf close;
[/pre]



Ksharp
Ask a Question
Discussion stats
  • 2 replies
  • 166 views
  • 0 likes
  • 3 in conversation