Help using Base SAS procedures

ERROR: Procedure GCHART not found.

Accepted Solution Solved
Reply
New Contributor
Posts: 2
Accepted Solution

ERROR: Procedure GCHART not found.

Hello,

 I am new to SAS as a primarily R user until now. I am working on some basic examples in SAS to get going and the following is my code:

TITLE 'Bar Chart with Discrete Option';
PROC GCHART DATA=auto;
VBAR rep78/ DISCRETE;

RUN;

 

The result is ERROR: Procedure GCHART not found. Why is this happening?

 

I do not have the University Edition! I already checked my SAS installation, results here:
Product expiration dates:
---Base SAS Software
14APR2017
---SAS/STAT
14APR2017
---SAS/GRAPH
14APR2017
---SAS/ETS
14APR2017
---SAS/FSP
14APR2017
---SAS/ASSIST
14APR2017
---SAS/CONNECT
14APR2017
---SAS/EIS
14APR2017
---SAS Enterprise Miner
14APR2017
---MDDB Server common products
14APR2017
---SAS Enterprise Guide
14APR2017
---SAS/ACCESS Interface to PC Files
14APR2017
---SAS/ACCESS Interface to ODBC
14APR2017
---SAS Enterprise Miner for Desktop
14APR2017
---SAS Workspace Server for Local Access
14APR2017
---SAS Add-in for Microsoft Excel
14APR2017

Thanks for your help.


Accepted Solutions
Solution
‎11-28-2016 01:32 PM
Super User
Posts: 23,754

Re: ERROR: Procedure GCHART not found.

Posted in reply to aiden_dataminer

Yes, run:

 

 

proc product_status;
run;

Also, post your error from the log to here, with the full set of code run.

 

View solution in original post


All Replies
Super User
Posts: 10,269

Re: ERROR: Procedure GCHART not found.

Posted in reply to aiden_dataminer

For a certain module to work in SAS, you must have it installed and licensed; since SAS/GRAPH is licensed, I suspect that your installation was not complete. This might be due to the deployment plan that was used.

 

Did you do the SAS installation yourself?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
New Contributor
Posts: 2

Re: ERROR: Procedure GCHART not found.

Posted in reply to KurtBremser

Nope, IT did the install, is there a way I can check the install ?

 

Solution
‎11-28-2016 01:32 PM
Super User
Posts: 23,754

Re: ERROR: Procedure GCHART not found.

Posted in reply to aiden_dataminer

Yes, run:

 

 

proc product_status;
run;

Also, post your error from the log to here, with the full set of code run.

 

Community Manager
Posts: 3,432

Re: ERROR: Procedure GCHART not found.

For an even more comprehensive report, run the SAS Install Reporter program that you can find with this SAS note (Downloads tab)

Community Manager
Posts: 3,432

Re: ERROR: Procedure GCHART not found.

Posted in reply to ChrisHemedinger

Oh, and one more tip -- if you are just getting started with SAS, I recommend learning PROC SGPLOT instead of GCHART for basic analytical graphs.  Coming from R, you'll find the syntax a little bit cleaner and less verbose.  SGPLOT is part of Base, not SAS/GRAPH.

 

@Sanjay_SAS wrote a nice intro to VBAR in this blog post.  You might also want to check out the SAS Programming for R Users course (free materials here!).

 

You will want to use the SAS/GRAPH techniques to do more advanced tricks with drilldowns and geo maps, if you have those requirements.

 

 

Frequent Learner
Posts: 1

Re: ERROR: Procedure GCHART not found.

Posted in reply to ChrisHemedinger

Thank you for the suggestion to use SGPLOT in the University edition.  This helped me solve a problem I was having on my first SAS assignment.  Here is a code snippet to display the syntax difference between SGPLOT and GCHART for a bar graph displaying population percentages:

 

/** Does not work with the University Edition

proc gchart data=A;                                                                                                               

   vbar 'Place of Birth'n  / freq=number 

    type=percent raxis=axis1 width=9 space=3;             

**/

 

proc sgplot data=A;

   vbar 'Place of Birth'n / freq=number barwidth=.9 stat=percent ;

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 6 replies
  • 2172 views
  • 2 likes
  • 5 in conversation