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 2024

Innovate_SAS_Blue.png

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. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 701 views
  • 4 likes
  • 2 in conversation