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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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