Enhancing Reports |
Specifying
Titles |
To make your report more meaningful and self-explanatory,
you can associate up to ten titles with procedure output by using TITLE
statements anywhere within or preceding the PROC step.
TITLE statements are global statements. That is, after you define a title, it remains in effect until you modify it, cancel it, or end your SAS session. |
General form, TITLE statement:
where n is a number from 1 to 10 that specifies the title line, and 'title-text' is the actual title to be displayed. The maximum title length depends on your operating environment and the value of the LINESIZE= option.
|
The two TITLE statements below, specified for lines 1 and
3, define titles for the PROC PRINT output.
title1 'Heart Rates for Patients with'; title3 'Increased Stress Tolerance Levels'; proc print data=clinic.stress; var resthr maxhr rechr; where tolerance='I'; run; In SAS listing output, title line 2 appears blank, as shown below. Titles are centered by default. |
Heart Rates for Patients with Increased Stress Tolerance Levels Rest Max Rec Obs HR HR HR 2 68 171 133 3 78 177 139 8 70 167 122 11 65 181 141 14 74 152 113 15 75 158 108 20 78 189 138 |
In HTML output, title lines simply appear consecutively, without extra spacing to indicate skipped title numbers. |
Heart Rates for Patients with |
Increased Stress Tolerance Levels |
Obs | RestHR | MaxHR | RecHR |
2 | 68 | 171 | 133 |
3 | 78 | 177 | 139 |
8 | 70 | 167 | 122 |
11 | 65 | 181 | 141 |
14 | 74 | 152 | 113 |
15 | 75 | 158 | 108 |
20 | 78 | 189 | 138 |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.