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.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.