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

I am trying to save ouput from proc sgrender as a png file with specified filename. I can get SAS to save it with generic filenames like SGRENDER17.png using

 

ods html gpath='..';

but cannot get anything out of

 

filename grafout "c:\dropbox\FIG1A.png";
goptions reset=all gsfname=grafout gsfmode=replace device=png;
proc sgrender data=GRM template=GRM;
run;
filename grafout clear;

what am I doing wrong ?

1 ACCEPTED SOLUTION

Accepted Solutions
DanH_sas
SAS Super FREQ

Instead of GOPTIONS, use the ODS GRAPHICS statement:

 

ods graphics / reset outputfmt=png imagename="MyName";

 

 

View solution in original post

5 REPLIES 5
DanH_sas
SAS Super FREQ

Instead of GOPTIONS, use the ODS GRAPHICS statement:

 

ods graphics / reset outputfmt=png imagename="MyName";

 

 

karlbang
Fluorite | Level 6

where would the file then be located? Can't find it anywhere

DanH_sas
SAS Super FREQ

It gets written to your GPATH or PATH (if GPATH not specified).

RyanHoward
Calcite | Level 5
Thank you. I have searched a solution to this problem many times. This was really helpful.

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
  • 5 replies
  • 1746 views
  • 0 likes
  • 3 in conversation