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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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