BookmarkSubscribeRSS Feed
Eram
Fluorite | Level 6

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
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ

 

5 REPLIES 5
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

Eram
Fluorite | Level 6
Yeah, it worked.. thank so much.
mkeintz
PROC Star

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.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
ballardw
Super User

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.

Astounding
PROC Star

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).

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 25326 views
  • 1 like
  • 5 in conversation