BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello dears SAS users.
my problem is the following, when i submit this code

ods html path = "C:\test1"
gpath= "C:\test1"
file = "test_graph2.htm";
ods select Univar;
title j=c "QQplot mat ";
proc univariate data=sashelp.class ;
class sex ;
var weight;
qqplot / normal(mu=est sigma=est) ncol=2 vaxislabel =" ";
run;
ods html close;

but in my HTML output there is always before the graphics of qqplot
the univariate procedure ( i can remove that with ods noproctitle)
but after it's written
Variable: Weight
Sex = M
how can i do to remove this ?
I'm still seeking but i don't find anything for the moment !!
should you help me ?
Thank you
3 REPLIES 3
David_SAS
SAS Employee
PROC DOCUMENT can do what you want. The following works in SAS 9.2. I believe it works in SAS 9.1 also.

[pre]
ods document name=doc(write);
ods listing close;
ods select Univar;
title j=c "QQplot mat ";
proc univariate data=sashelp.class ;
class sex ;
var weight;
qqplot / normal(mu=est sigma=est) ncol=2 vaxislabel =" ";
run;
ods document close;
ods listing;
proc document name=doc;
list/levels=all;run;
obstitle univariate\weight\qqplot\univar;run;
ods html file="test.html";
ods listing close;
replay;run;quit;
ods html close;
[/pre]

The DOCUMENT OBSTITLE command deletes the subtitles (aka proc titles) associated with graph output object univar.

-- David Kelley, SAS
deleted_user
Not applicable
Thank you for your answer but may be there is a more general option to remove this lines of information before the graphics output ?
like ods noproctitle to remove information about the procedure which is used.
David_SAS
SAS Employee
No, there is no other way within ODS to remove output object subtitles.

-- David Kelley, SAS

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
  • 1010 views
  • 0 likes
  • 2 in conversation