Enhancing Reports |
Specifying
Titles |
Modifying and Canceling Titles
A TITLE statement remains in effect until you modify it, cancel it, or end your SAS session. For example, the titles assigned for the PROC PRINT step below also appear in the output from the PROC TABULATE step. title1 'Heart Rates for Patients with'; title3 'Increased Stress Tolerance Levels'; proc print data=clinic.stress; var resthr maxhr rechr; where tolerance='I'; run; proc tabulate data=clinic.stress; where tolerance='I'; var resthr maxhr; table mean*(resthr maxhr); run; Redefining a title line cancels any higher-numbered title lines. In the example below, defining a title for line 2 in the second report automatically cancels title line 3. title3 'Participation in Exercise Therapy'; proc print data=clinic.therapy; var swim walkjogrun aerclass; run; title2 'Report for March'; proc print data=clinic.therapy; run; To cancel all previous titles, specify a null TITLE statement (a TITLE statement with no number or text) or a TITLE1 statement with no text. In the program below, the null TITLE statement cancels all titles in effect. The PROC TABULATE output appears without a title. title1 'Heart Rates for Patients with'; title3 'Increased Stress Tolerance Levels'; proc print data=clinic.stress; var resthr maxhr rechr; where tolerance='I'; run; title; proc tabulate data=clinic.stress; var timemin timesec; table max*(timemin timesec); run; |
Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.