How to display a Stacked grouping in a VBARPARM chart for SAS 9.3? There is a syntax error when I add the groupdisplay option with VBARPARM. The default option for Group is Cluster, not Stacked.
I have to use a combination of VBARPARM and SERIES charts to control the grouping of the LPARNAME variable,
Errror:
58 /group=LPARNAME groupdisplay=stack
____________
22
76
ERROR 22-322: Syntax error, expecting one of the following: ;, ATTRID, BARWIDTH, CLUSTERWIDTH, DATALABEL, DATALABELATTRS, DATALABELPOS, DATASKIN, DISCRETEOFFSET, FILL, FILLATTRS, GROUP, GROUPORDER, LEGENDLABEL, LIMITATTRS, LEGENDLABEL, LIMITATTRS, LIMITLOWER, LIMITUPPER,
MISSING, NAME, NOFILL, NOOUTLINE, OUTLINE, TRANSPARENCY, URL.
My code is:
PROC SGPLOT DATA=file1
description = ' ';
BY Complex;
vbarparm category=TIME response=SMF70LAC/group=LPARNAME groupdisplay=stack
name='a';
SERIES X=TIME
Y=SMF70MCR /
LEGENDLABEL='CAPACITY RATING'
lineattrs=(color=gold thickness=3) name='b'
curvelabelloc=outside
CURVELABELPOS= Max
curvelabelattrs=(size=8pt)
CURVELABEL="COMPLEX CAPACITY";
SERIES X=TIME
Y=LPAR_MSU /
LEGENDLABEL='LPAR MSU'
lineattrs=(color=green thickness=3) name='C'
curvelabelloc=outside
CURVELABELPOS= Max
curvelabelattrs=(size=8pt)
CURVELABEL="LPAR MSU";
xaxis display=(nolabel);
KEYLEGEND 'A' / TITLE=' '
valueattrs=(Family=Arial Size=8);
run;
Thanks, it worked.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.