The SAS Output Delivery System and reporting techniques

Changing the title of a histogram (proc univariate) in SAS 9.3 ?

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 96
Accepted Solution

Changing the title of a histogram (proc univariate) in SAS 9.3 ?

Hi all,

I'm trying to rename the histogram in proc univariate. This thread posts an answer that requires /odstitle, but I can't get it to work in SAS 9.3, what would be the alternative?  Is it that my SAS 9.3 is not up to date?

 

NOTE: Copyright (c) 2002-2010 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software 9.3 (TS1M1)
Licensed to xxx
NOTE: This session is executing on the W32_7PRO platform.

 

 

ods graphics on;
proc univariate data=sashelp.class noprint;
histogram weight/ odstitle = "Sample ODS output title";
run;

--------
22
76
ERROR 22-322: Syntax error, expecting one of the following: ;, ANNOKEY, ANNOTATE, BARLABEL,
BARWIDTH, BETA, CAXIS, CBARLINE, CFILL, CFRAME, CFRAMESIDE, CFRAMETOP, CGRID,
CHREF, CLIPREF, CONTENTS, CPROP, CTEXT, CV, CVREF, DESCRIPTION, ENDPOINTS,
EXPONENTIAL, FONT, FRONTREF, GAMMA, GRID, GUMBEL, HANGING, HAXIS, HEIGHT, HMINOR,
HOFFSET, HREF, HREFLABELS, HREFLABPOS, IGAUSS, INFONT, INHEIGHT, INTERBAR,
INTERTILE, KERNEL, LGRID, LHREF, LOGNORMAL, LVREF, MAXNBIN, MAXSIGMAS, MIDPERCENTS,
MIDPOINTS, NAME, NCOL, NCOLS, NENDPOINTS, NMIDPOINTS, NOBARS, NOCHART,
NOCURVELEGEND, NOFRAME, NOHLABEL, NOLEGEND, NOPLOT, NORMAL, NOTABCONTENTS,
NOVLABEL, NOVTICK, NROW, NROWS, OUTHISTOGRAM, OUTKERNEL, PARETO, PFILL, POWER,
RAYLEIGH, RTINCLUDE, SB, SU, TILELEGLABEL, TURNVLABELS, VAXIS, VAXISLABEL, VMINOR,
VOFFSET, VREF, VREFLABELS, VREFLABPOS, VSCALE, WAXIS, WBARLINE, WEIBULL, WGRID.
ERROR 76-322: Syntax error, statement will be ignored.
4 run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE UNIVARIATE used (Total process time):
real time 0.26 seconds
user cpu time 0.06 seconds
system cpu time 0.01 seconds
memory 2853.36k
OS Memory 8560.00k
Timestamp 2015-11-13 03 h 55

 


Accepted Solutions
Solution
‎11-13-2015 06:37 AM
Trusted Advisor
Posts: 1,114

Re: Changing the title of a histogram (proc univariate) in SAS 9.3 ?

It seems that the ODSTITLE= option does not work in SAS 9.3 (TS1M1). In SAS 9.4 (TS1M2) it works fine. As an alternative you could try this:

proc sgplot data=sashelp.class;
histogram weight / showbins;
title 'Your own title';
run;

Does this work in your SAS 9.3?

View solution in original post


All Replies
Solution
‎11-13-2015 06:37 AM
Trusted Advisor
Posts: 1,114

Re: Changing the title of a histogram (proc univariate) in SAS 9.3 ?

It seems that the ODSTITLE= option does not work in SAS 9.3 (TS1M1). In SAS 9.4 (TS1M2) it works fine. As an alternative you could try this:

proc sgplot data=sashelp.class;
histogram weight / showbins;
title 'Your own title';
run;

Does this work in your SAS 9.3?

Frequent Contributor
Posts: 96

Re: Changing the title of a histogram (proc univariate) in SAS 9.3 ?

It does, that will do, thanks!

 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 643 views
  • 0 likes
  • 2 in conversation