Help using Base SAS procedures

gplot and truncating

Reply
Occasional Contributor
Posts: 17

gplot and truncating

Hi there,

I'm trying to plot 3 variables:

PLOT Observation * Date =assistance

The assistance data values are longer than 32 characters and I want them all in my legend. However, I'm getting the following message in the log:

NOTE: Value of IDVAR(Assistance) truncated to 32 characters

Is there any way to get around this?

Thanks,
Christy
SAS Super FREQ
Posts: 8,864

Re: gplot and truncating

Hi:
This Tech Support note explains that the value is truncated to 32 characters:
http://support.sas.com/kb/00/807.html

cynthia
SAS Super FREQ
Posts: 1,171

Re: gplot and truncating

If you are using SAS 9.2, you could try using the SGPLOT procedure. See attached program.


data longgroupvalues;
set sashelp.cars;
length origin1 $65;
label origin1='Country of Origin';

select (origin);
when('USA') origin1='United State Of America, Land of the Free and Home of the Brave';
when('Europe') origin1='Europe, The Olde World';
when('Asia') origin1='Mostly East Asia and Pacific Coast Countries';
end;
run;
/*proc print data=longgroupvalues; run;*/

ods html;
title 'Fit plot with Long Group Values';
proc sgplot data=longgroupvalues;
reg x=horsepower y=mpg_city / group=origin1 degree=2;
xaxis grid;
yaxis grid;
run;
ods html close;
Ask a Question
Discussion stats
  • 2 replies
  • 224 views
  • 0 likes
  • 3 in conversation