BookmarkSubscribeRSS Feed
bits
Fluorite | Level 6

I have submitted the code for creating bar-line graph as:

 

proc gbarline data=work.val;                                                                                                            
bar Manufacturer / sumvar=nam width=2 discrete noframe space=1 raxis=axis2  maxis=axis1;                                                                                                                            
plot / sumvar=freq raxis=axis3;                                                                                                          
 run;                                                                                                                                   
 quit; 

But its showing an error as:

 

 

295 proc gbarline data=work.val;
296 bar Manufacturer/sumvar=name width=2 discrete noframe space=1 raxis=axis2
297 maxis=axis1;
298 plot/sumvar=freq raxis=axis3;
             -
            22
            76
ERROR 22-322: Expecting a name.
ERROR 76-322: Syntax error, statement will be ignored.
299 run;
300 quit;

 please help...thanks in advance...

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

You need to supply a variable name to be plotted e.g:

plot <variablename> / sumvar=freq raxis=axis3;

BrunoMueller
SAS Super FREQ

Hi

 

You should provide the SAS Version Information, this will help to lookup the corresponding documentation.

 

You can use the following code to get the version information back:

%put NOTE: SYSVLONG=&sysvlong SYSSCPL=&sysscpl;

Bruno

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 724 views
  • 0 likes
  • 3 in conversation