BookmarkSubscribeRSS Feed
herbman
Obsidian | Level 7

Hello,

 

I ran a stored process and it gave error:

WARNING: GPATH or PATH is not a writable directory. It will be ignored.
ERROR: Cannot write image to /mnt/san_install/sas/sasconfig/Lev1/DXGEN_BI/SGPlot.png. Please ensure that proper disk permissions are set.

  It was working fine for me and appreciate to know how to fix this issue.

 

Thanks!

 

Herb

3 REPLIES 3
Reeza
Super User
Did you set the gpath or path in the program? I'm assuming you've switched from running a program locally to on a server when you said it 'working fine for me'? If so, the paths likely have changed and you need to explicitly set the GPATH on your ODS statement.
SASKiwi
PROC Star

Your graph output is trying to write to a SAS install directory which is not a good thing to do. Also stored processes run under a SAS service account, possibly sassrv, and this might explain why SAS is writing there. You can confirm the actual user account by checking in SAS Management Console.

 

Please post your graph program so we can advise where to change it to direct output to a better folder location.

herbman
Obsidian | Level 7

Hi SASKiwi and Reeza,

 

Yes, The stored process did not specify the specified the ods in the whole program code, and it did not include %STPBEGIN/%STPEND either for the output display. 

I am not able to attached the stored process file, the output part include the sgplot:

 

proc sgplot data=inpara noautolegend;

reg y=VA x=Obtained / weight=weight;
xaxis label="Obtained (&unit)";
yaxis label="VA (&unit)";
inset "Intercept = &Int" "Slope = &Slope" /
border title="Parameter Estimates" position=topleft
;

run;

 

Is it possible that the prompts or the execution options change caused the issue? the snipped of the settings is attached.

 

Thank you for your help!

 

Herb

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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