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

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;

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
Yes, that's a SAS 9.4 feature that is not available in 9.3. GTL may enable you to do this though, use TMPLOUT option on SGPLOT and then you can try the GTL approach with SGRENDER.

View solution in original post

2 REPLIES 2
Reeza
Super User
Yes, that's a SAS 9.4 feature that is not available in 9.3. GTL may enable you to do this though, use TMPLOUT option on SGPLOT and then you can try the GTL approach with SGRENDER.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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
  • 1007 views
  • 4 likes
  • 2 in conversation