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

Hi, i would like to export() Graph as a image(JPEG,PNG).

 

Below is the code which ia am trying but it is not saving the file path wich i mentioned .

filename graphout 'C:\Users\sivakumar.sivaraj\Downloads\test.png';

 

goptions reset=all device=png gsfname=graphout;

 

proc gplot data=sashelp.class;
plot height*weight;
run;

quit;

 

Log:

NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
22
23 GOPTIONS ACCESSIBLE;
24 filename graphout 'C:\Users\sivakumar.sivaraj\Downloads\test.png';
25 goptions reset=all device=png gsfname=graphout;
26
27 proc gplot data=sashelp.class;
28 plot height*weight;
29 run;

NOTE: 9543 bytes written to C:\Users\SIVAKU~1.SIV\AppData\Local\Temp\SAS Temporary Files\_TD27552_AGSCHTD05-SASPR_\Prc2\gplot2.png.
30
31 quit;

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: PROCEDURE GPLOT used (Total process time):
real time 0.13 seconds
cpu time 0.14 seconds

 

 

 

 

1 ACCEPTED SOLUTION
6 REPLIES 6
sivastat08
Pyrite | Level 9

thank you sir.

sivastat08
Pyrite | Level 9

thank you Mr.Prashant.

ballardw
Super User

Title of question asks about JPEG but you specifically indicate the file created is PNG???

sivastat08
Pyrite | Level 9
yes sir ,i was looking for graph should be exported into either JPEG/PNG file.Going forword i will raise the question clearly.Thank you very much sir.

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
  • 6 replies
  • 9137 views
  • 3 likes
  • 4 in conversation