DATA Step, Macro, Functions and more

proc gbarline not working

Reply
Occasional Contributor
Posts: 19

proc gbarline not working

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...

Super User
Super User
Posts: 7,988

Re: proc gbarline not working

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

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

SAS Super FREQ
Posts: 709

Re: proc gbarline not working

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

Ask a Question
Discussion stats
  • 2 replies
  • 108 views
  • 0 likes
  • 3 in conversation