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-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1907 views
  • 0 likes
  • 2 in conversation