Hi,
I used ttile in one of my proc means procedures but the same title is continuing for the consecutive proc feq, proc contents, proc print etc.
what do i do to restrain the title to one set of program only?
Below "MEANS STATISTICS OF CARS" title was given in the previous proc step. why is it continuing to next program, what do i do to get rid of Title in next and forth programs?
MEANS STATISTICS OF CARS 666
17:46 Saturday, December 28, 2013
The MEANS Procedure
Variable Label N Mean Std Dev Minimum Maximum
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
MSRP 428 32774.86 19431.72 10280.00 192465.00
Invoice 428 30014.70 17642.12 9875.00 173560.00
EngineSize Engine Size (L) 428 3.1967290 1.1085947 1.3000000 8.3000000
Cylinders 426 5.8075117 1.5584426 3.0000000 12.0000000
Horsepower 428 215.8855140 71.8360316 73.0000000 500.0000000
MPG_City MPG (City) 428 20.0607477 5.2382176 10.0000000 60.0000000
MPG_Highway MPG (Highway) 428 26.8434579 5.7412007 12.0000000 66.0000000
Weight Weight (LBS) 428 3577.95 758.9832146 1850.00 7190.00
Wheelbase Wheelbase (IN) 428 108.1542056 8.3118130 89.0000000 144.0000000
Length Length (IN) 428 186.3621495 14.3579913 143.0000000 238.0000000
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
Put another title or footnote statment, with nothing will nullify it e.g:
title "Hello World"; proc ....; run; title; proc ...; run;
The second proc will not have Hello World title.
The take-home message here is that TITLE is a global sas statement. See Global Statement by Category. TITLE (and FOOTNOTE) are in the "Output Control" category.
Please also note that this is actually a useful feature when coupled with the multiple Title statements available.
You can maintain a "main" or common title for multiple procedures and provide specific subtitles for different output:
Title1 "This is the Main Report Title";
Title2 "This is the Section 1 Title";
Title3 "This title is for Procedure 1";
<proc>
Title3 "This is for Procedure 2";
<proc>
Title2 "This is the Section 2 Title";
Title3 "This title is for Procedure 1";
<proc>
Title3 "This is for Procedure 2";
<proc>
title2; /* clears definitions for title2 and 3 statements but leaves Title1 in effect*/
Will have different titles at each procedure output maintaining the lower numbered title statements across multiple procedure outputs.
Titles are global statements that remain in effect until changed (as you have seen). There is no such thing as a temporary title.
Your options include adding a TITLE statement to all of your procedures. Alternatively, following the RUN statement at the end of PROC MEANS, you could add:
title ' ';
That will blank out all title lines going forward (until you add a later TITLE statement).
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.