09-18-2014 12:55 PM
I run a proc lifetest using SAS 9.4. Then it appears error note:
ERROR: Cannot write image to SurvivalPlot3.png. Please ensure that proper disk permissions are set.
I tried the way previous posted same kind of problem (probably using SAS 9.2 or 9.3), it did not work.
Thanks for your help,
09-18-2014 08:14 PM
Where is SAS trying to write the PNG file? You obviously don't have write permission to that disk folder.
Please post your code so we can advise further.
09-19-2014 12:11 PM
Here is my code:
proc lifetest data=primary2 plot=(s)censoredsymbol=none ;
It only happened in SAS 9.4 version 14w25. It is ok when I run same code in old version SAS 9.4.
09-22-2014 01:19 AM
Is that all? You don't use any ODS statements to direct your PNG output?
Try adding: ods graphics off; at the top of your code.
09-22-2014 10:22 AM
It works very well. Can you let me know why add 'ods graphics off;'?
09-22-2014 10:39 AM
Because it's no longer trying to create a graph.
You can try and change your destination path (gpath) and see if it works.
09-22-2014 03:50 PM
You tried the way showed in 'SAS/STAT(R) 9.2 User's Guide, Second Edition'
It did not work.
09-22-2014 04:55 PM
This is what you need to change to move your PNG files to a writable location:
ods listing gpath="C:\figures"; <=== put your writable location here.
Is this what you tried? As a helpful suggestion, if you say something doesn't work but don't provide the code and error message, then we have to end up guessing what you did......! So that is why it is very helpful to post what you did.
Yes, you can use the ODS graphics editor on LIFETEST, as long as the procedure is producing graphics (ODS graphics on) and you have the ODS graphics editor installed (you should see this listed in the Windows Start button All Programs).
09-22-2014 05:20 PM
My SAS 9.4 had 'ods graphic editor' option. I opened SAS with 'run as administrator'.
Below is my code. It produce 3 survival graphs: html, PNG, and the third one for 'ods graphics editor'.
When I click the 3rd graph, showed error window: this application does not support your platform'.
241 ods listing gpath="C:\figures";
242 ods listing sge=on style=Listing;
243 ods graphics on;
244 proc lifetest data=primary2 plot=(s)censoredsymbol=none ;
245 time time*status(0);
246 strata flowstatus;
09-22-2014 06:56 PM
The editor is a separate install. If this is a new install, which it sounds like, it may not have been installed. I believe you should be able to see it in your application list, similar to SAS.