BookmarkSubscribeRSS Feed
NN
Quartz | Level 8 NN
Quartz | Level 8
Guys i was trying to save my graph output to a specified path.
I wanted the output to be a .png file.

I tried using the below code but the PNG file gets created in the work library and not in the defined my_folder path.

Any suggestions... would be helpful

Thanks

filename graphout "/my_folder/";
goptions reset=all device=png gsfname=graphout;
PROC GPLOT DATA = sashelp.class;
PLOT Age * Name / name="mychart2"
VAXIS=AXIS1

HAXIS=AXIS2

FRAME;
RUN; QUIT;
1 REPLY 1
Andre
Obsidian | Level 7
A filename is a filename and not a directory only

on windows it works with by example with

filename graphout "d:\temp\name.png";

the -- name.png -- is the name of the file and is located where you/i indicate it
even if you have in your work.gseg an object grseg with Mychart2 name
after a first try!

Andre

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 1732 views
  • 0 likes
  • 2 in conversation