BookmarkSubscribeRSS Feed
Karo_22
Calcite | Level 5
Hi, currently have something like this where I want to simply use proc print with ods otpions....

ods listing close;
ods tagsets.tableeditor file=dout options(web_tabs="&company_code") STYLE=uhc headtext="
3 REPLIES 3
Tim_SAS
Barite | Level 11
You can suppress this default title by specifying a title statement with no title:

[pre]title;[/pre]
Karo_22
Calcite | Level 5
Sorry, not clear where to put that. In ODS stmt or in proc print...tried both ways & got errors .
Cynthia_sas
SAS Super FREQ
Hi:
The TITLE statement is a SAS Global statement. Any of these are valid:
[pre]

** NULL title statement inside PROC step boundary;
ods <destination information goes here> ;
proc print data=sashelp.class noobs;
title;
run;
ods _all_ close;

** TITLE statement with value outside ODS "sandwich";
title 'My Report Title';
ods <destination information goes here> ;
proc print data=sashelp.class noobs;
run;
ods _all_ close;

** TITLE statement with value inside PROC PRINT step;
ods <destination information goes here> ;
proc print data=sashelp.class noobs;
title 'My Report Title';
run;
ods _all_ close;
[/pre]

A "null" TITLE statement (TITLE;) will remove the TITLE1 value and any other TITLEs (TITLE2 through TITLE10) that have been set. Although some ODS destinations (such as HTML) have a TITLE= option, it is entirely different than the SAS Global TITLE statement. A TITLE statement is not tied to ODS -- in fact, a TITLE statement is not necessarily tied to any single procedure. You could issue a TITLE statement at the top of your program:
[pre]
title 'All My Output';

proc freq data=sashelp.shoes;
title2 'Proc Freq';
tables region;
run;

proc means data=sashelp.shoes;
title2 'Proc Means';
var sales;
run;

proc print data=sashelp.shoes(obs=5);
title2 'Five Obs';
run;
[/pre]

And then all 3 outputs, in the LISTING window, would have the same TITLE1 (All My Output) and different TITLE2 statements. If you routed your output to ODS, then, if your destination accepted the titles or used the titles, you should see them in your output. Every time SAS starts, a default TITLE1 statement is set, which makes the default title "The SAS System". To remove that default title in your output, you would issue a NULL TITLE statement, which is just the keyword TITLE, followed by a semi-colon. The statement is generally issued on a line by itself, not as part of an ODS statement, or a PROC statement:
[pre]
title;
[/pre]

cynthia

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 9580 views
  • 0 likes
  • 3 in conversation