![]() Chapter Contents |
![]() Previous |
![]() Next |
| TITLE |
| Valid: | anywhere |
| Category: | Output Control |
| Syntax | |
| Without Arguments | |
| Arguments | |
| Details | |
| In a DATA Step or PROC Step | |
| Customizing Titles in a PROC step | |
| In a PROC step | |
| Comparisons | |
| Examples | |
| See Also | |
Syntax |
| TITLE <n> <'text' | "text">; |
Using TITLE without arguments cancels all existing titles.
| Arguments |
| Range: | 1 - 10 |
| Tip: | The title line with the highest number appears on the bottom line. If you omit n, SAS assumes a value of 1. Therefore, you can specify TITLE or TITLE1 for the first title line. |
| Tip: | You can create titles that contain blank lines between the lines of text. For example, if you specify text with a TITLE statement and a TITLE3 statement, there will be a blank line between the two lines of text. |
| Tip: | For compatibility with previous releases, SAS accepts some text without quotation marks. |
| Tip: | When writing new programs or updating existing programs, always surround text with quotation marks. |
| See Also: | For more information about including quotation marks as part of the title, see the "Expressions" chapter in SAS Language Reference: Concepts. |
| Details |
A TITLE statement takes effect when the step or RUN group with which it is associated executes. Once you specify a title for a line, it is used for all subsequent output until you cancel the title or define another title for that line. A TITLE statement for a given line cancels the previous TITLE statement for that line and for all lines with larger n numbers.
Operating Environment Information: The
maximum title length that is allowed
depends on your operating environment and the value of the LINESIZE= system
option. Refer to the SAS documentation for your operating environment for
more information.
You can customize titles by inserting BY variable values (#BYVALn), BY variable names (#BYVARn), or BY lines (#BYLINE) in titles that are specified in PROC steps. Embed the items in the specified title text string at the position where you want the substitution text to appear.
| Example: | #BYVAL2 specifies the second variable in the BY statement. |
| Example: | #BYVAL(YEAR) specifies the BY variable, YEAR. |
| Tip: | Variable-name is not case sensitive. |
| Example: | #BYVAR2 specifies the second variable in the BY statement. |
| Example: | #BYVAR(SITES) specifies the BY variable SITES. |
| Tip: | Variable-name is not case sensitive. |
| Tip: | #BYLINE produces output that contains a BY line at the top of the page unless you suppress it by using NOBYLINE in an OPTIONS statement. |
| See Also: | For more information on NOBYLINE, see BYLINE. |
Follow these rules when you use #BYVAR, #BYVAL, and #BYLINE in the TITLE statement of a PROC step:
| Comparisons |
You can also create titles with the TITLES window.
| Examples |
titlen;
title 'First Draft';
title2 "Year's End Report";
title2 'Year''s End Report';
title 'Quarterly Sales for #byval(site)';
title 'Annual Costs for #byvar2';
title 'Data Group #byline';
| See Also |
| Statement:
| |||
| System
Option:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.