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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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