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

Hi I am trying to plot the data but the error gives me like below. Can someone please show me what is wrong with my code?

DATA Chapt17;
	SET Chapt17.earth;
	 lfreq = log(freq + 1);
RUN;
PROC PRINT DATA = chapt17;
RUN; 
* Plotting the data;
SYMBOL1 VALUE="S" COLOR=BLACK;
SYMBOL2 VALUE="W" COLOR=BLACK;


* Plot data Page 7;
PROC GPLOT DATA=Chapt17;
   PLOT freq*Magnitude=Locn;
RUN;


 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73         PROC GPLOT DATA=Chapt17;
 ERROR: Procedure GPLOT not found.
 74            PLOT freq*Magnitude=Locn;
 75         RUN;
 
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE GPLOT used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 76         
 77         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 89         
1 ACCEPTED SOLUTION

Accepted Solutions
Jagadishkatam
Amethyst | Level 16

May be you need to try the new version of the graphic procedures. The older versions are available in your SAS version.

 

try the proc sgplot if you are trying the line plot

 

proc sgplot data=chapt17;
series x=magnitude y=freq / grou=locn;
run;
Thanks,
Jag

View solution in original post

4 REPLIES 4
Jagadishkatam
Amethyst | Level 16

May be you need to try the new version of the graphic procedures. The older versions are available in your SAS version.

 

try the proc sgplot if you are trying the line plot

 

proc sgplot data=chapt17;
series x=magnitude y=freq / grou=locn;
run;
Thanks,
Jag
kngu022
Obsidian | Level 7

Thanks Jagadishktatam. I want to have scatter plot instead of line, Do you have any solution?

Cynthia_sas
SAS Super FREQ

Hi:

  SGPLOT has a SCATTER statement. There are numerous examples in the documentation. For example, here: https://go.documentation.sas.com/?docsetId=grstatproc&docsetTarget=p1lcbd3lhs3t3bn1jk6d8sjt2yqx.htm&... the documentation has 4 examples.

 

Cynthia

kngu022
Obsidian | Level 7

Thanks Cynthia for your help. I already managed to solve the problem. 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1982 views
  • 3 likes
  • 3 in conversation