BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello dears SAS users
I have the following problem
when i ran this code:
proc sort data=sashelp.class out=class;
by sex;
run;
ods noproctitle;
ods rtf file="G:\Assens\prog_autres\forum_sas\qqplot.rtf";
ods graphics on;
ods select qqplot;

proc univariate data=class;
var weight;
by sex;
qqplot / normal(mu=est sigma=est);
run;

ods graphics off;
ods rtf close;

There is written before my qq plot,
Variable: Weight
How can i do to remove it ?
Is there a general options to remove this ?
Thank you.
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
I'm not exactly sure how UNIVARIATE manages it, but it seems that the "Variable: xxxxx" information is being sent by PROC UNIVARIATE as though it were a procedure title. As you observe from your code, however, using ODS NOPROCTITLE does not suppress this string.

You can "disappear" the "Variable: xxxxx" string by turning the foreground and background color to be the same value -- in the code below, I'm changing them both to white so they disappear against the RTF page, when the RTF file is opened in Microsoft Word.

I thought there might be a table (or graph) template method to get rid of the string, but I could not find it. Perhaps one of the ODS developers will have a better idea of how to approach this task.

cynthia
[pre]
proc sort data=sashelp.class out=class;
by sex;
run;

ods path work.temp(update) sashelp.tmplmst(read);

proc template;
define style styles.nopt;
parent=styles.rtf;
class ProcTitle /
background=white
foreground=white;
end;
run;

ods listing close;
ods noproctitle;
ods rtf file="c:\temp\qqplotf.rtf" style=styles.nopt;
ods graphics on;
ods select qqplot;
proc univariate data=class;
var weight;
by sex;
qqplot / normal(mu=est sigma=est);
run;

ods graphics off;

ods _all_ close;

[/pre]

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