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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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