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