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-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
  • 3 replies
  • 9217 views
  • 0 likes
  • 3 in conversation