BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
morglum
Quartz | Level 8

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

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

2 REPLIES 2
FreelanceReinh
Jade | Level 19

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?

morglum
Quartz | Level 8

It does, that will do, thanks!

 

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