01-31-2018 06:51 AM
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;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
23 GOPTIONS ACCESSIBLE;
24 filename graphout 'C:\Users\sivakumar.sivaraj\Downloads\test.png';
25 goptions reset=all device=png gsfname=graphout;
27 proc gplot data=sashelp.class;
28 plot height*weight;
NOTE: 9543 bytes written to C:\Users\SIVAKU~1.SIV\AppData\Local\Temp\SAS Temporary Files\_TD27552_AGSCHTD05-SASPR_\Prc2\gplot2.png.
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
01-31-2018 07:17 AM - edited 01-31-2018 07:18 AM
2 things, firstly are you sure you can access that path.
Secondly move to SGPLOT and GTL, far more robust:
01-31-2018 10:39 AM
Need further help from the community? Please ask a new question.