ODS and Base Reporting

Build reports by using ODS to create HTML, PDF, RTF, Excel, text reports and more!
BookmarkSubscribeRSS Feed
phil27
Calcite | Level 5
Hi,
I make an xls file with ods tagsets.excelxp.

I would like to modify the size of the text printed by the statements :
title, title2 and title3.

Is it possible ?

Thanks.

ods listing close;
ods noproctitle;

title "title1";
title2 "title2";
title3 "title3";


ods tagsets.excelxp file="C:\toto.xls" style=seaside
options( embedded_titles='yes'
embedded_footnotes='yes'
Center_Horizontal = 'yes'
Center_Vertical = 'yes'
contents='no'
index='no'
sheet_interval='none'
orientation='portrait'
FitToPage = 'yes'
Absolute_Column_Width='15'
Autofit_Height = 'YES'
Pages_FitWidth = '1'
Pages_FitHeight = '3000'
Print_Footer='&E SERVICE, &J &C Audit v1.0 &D Pages &P sur &T'
)
;

proc freq data=sashelp.cars; tables model; run;

ods tagsets.excelxp close;
ods listing;
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
The easiest way to change the title -- no matter what your ODS destination is -- is to use the title/footnote specific options as shown below:
[pre]
title f='Courier New' h=14pt color=green bold "title1";
title2 f='Arial' h=14pt color=purple italic "title2";
title3 f='Times New Roman' h=12pt bold italic color=red "title3";
[/pre]

f= (or font=) supplies the font name -- I quote all font names, but you only need to quote font names with spaces
h= (or height=) supplies the size (called "height" as an artifact left over from SAS/GRAPH) -- I always specify H= in PT units for ODS destinations
c= (or color=) supplies the foreground color of the string text that follows
bold is the option that bolds the text string
italic is the option that italicizes the text string

All title and footnote options must be specified BEFORE the text string they are meant to change.

Another method of altering the title and footnote statement is to use ODS ESCAPECHAR functionality, however, you can probably get what you want using these specific options first.

cynthia
phil27
Calcite | Level 5
Great,
thank you Cynthia.

Phil

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 2682 views
  • 0 likes
  • 2 in conversation