Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formating Title Size Bold within the SAS code 1

Status
Not open for further replies.

BrianAustin11051949

Programmer
Nov 11, 2003
1
GB
I have generated a report using Proc Report.

I wish to stipulate a larger font size for the Title1 and to make it bold

Within the code of the report.

Without affecting the rest of the report or being overridden by the setting from the print menus

Can you offer any advice please.

Regards

Brian.
 
Brian,
Why not use the ODS that SAS has. In that environment you can control the titles through the title options like 'J=center,right &left' or height='#'(inches?) and 'font=<here you have to use the SAS fonts century,swiss,zapf I think there is also swissb but I am not sure.
ex,.
ODS html file='your_file_name.htm';

title j=left height=6 color=red font=simplex
'YOUR_TITLE';

proc report
data = your_data_set nowd;
columns your_vars......;
run;
ODS html close;

Titles are for the whole proc or until they are reset. Typing the statement title; without anything will reset it.

Klaz
Hope this helps you.
 
Brian,
I just found a SAS paper on the subject. I have added it to the FAQ section (in the SAS Tips group). Check it out.
Klaz
 
I was doing trying to do similar things the yesterday. I was producing HTMLCSS output and TITLE's always came out with a H1 tags and I wanted to customise them a bit.

I discoverd the wonerful world of PROC TEMPLATE which is awesome, it really liberates ODS. I know this id a bit off-topic, but I think its worth sharing and maybe someone will want to make an FAQ entry out of it.

You can read all about it at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top