BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
jacksonan123
Lapis Lazuli | Level 10
  
 ods listing gpath = '/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN/TREAT.png';
 ods graphics /imagename="treat" imagefmt=png;
 


PROC SGPLOT DATA=STATD;
SERIES X=HR Y=MEAN_CONC/ GROUP=AGE
MARKERS
MARKERATTRS=(SIZE=10PX)
THICKRESP=MEAN_CONC;
yaxis label='Mean Concentration';
xaxis label ='Time (hrs)';
RUN;

When I run this code the graph is produced but I can't output it to my drive.  I get the following error:

Can some one tell me how to get around this problem and or how to change my code for getting a *.png file output?

 
WARNING: GPATH or PATH is not a writable directory. It will be ignored.
ERROR: Cannot write image to . Please ensure that proper disk permissions are set.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 46 observations read from the data set WORK.STATD.
88
89
90 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
102
 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Shmuel
Garnet | Level 18

I'm not sure but 

'/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN/TREAT.png';

is not a PATH but a File name.

 

Try to change to:

ods listing gpath = '/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN';

you already defined file name and its format in line:

ods graphics /imagename="treat" imagefmt=png;

 

 

View solution in original post

4 REPLIES 4
Reeza
Super User
I believe you need ODS HTML gpath = not listing. It's the HTML destination that's being used in SAS UE.
jacksonan123
Lapis Lazuli | Level 10
The problem was that I had mistakenly put a file name in the path.
Shmuel
Garnet | Level 18

I'm not sure but 

'/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN/TREAT.png';

is not a PATH but a File name.

 

Try to change to:

ods listing gpath = '/folders/myfolders/PLASMACOMPARIS/PLASMACOMPAPTEN';

you already defined file name and its format in line:

ods graphics /imagename="treat" imagefmt=png;

 

 

jacksonan123
Lapis Lazuli | Level 10

Thanks for pointing out my mistake.  Once I got rid of the file name in the path, it ran perfectly.

 

Thanks a lot for your help.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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
  • 4 replies
  • 3493 views
  • 4 likes
  • 3 in conversation