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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 2635 views
  • 0 likes
  • 2 in conversation