Hi,
I'm trying to use proc sgpie within SAS/Studio (3.8 &SAS 9.04.01M6P110718). I'm sure it's probably a simple setup step I've missed to get graphics output.
Tried various examples and keep getting this same error. I'm sure it's probably a simple setup step I've missed to get graphics output.
Here's an example from https://blogs.sas.com/content/graphicallyspeaking/2018/11/26/the-sgpie-procedure/
proc format;
value $type
'Sedan'='Sedan'
other= 'Other';
run;
ods graphics / reset width=4in height=2.5in;
title 'Vehicle Distribution';
proc sgpie data=sashelp.cars;
format type $type.;
styleattrs datacolors=(gold maroon);
pie type / startangle=270;
run;
Log output:
NOTE: ODS statements in the SAS Studio environment may disable some output features.
71
72 proc format;
73 value $type
74 'Sedan'='Sedan'
75 other= 'Other';
NOTE: Format $TYPE has been output.
76 run;
NOTE: PROCEDURE FORMAT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
77
78 ods graphics / reset width=4in height=2.5in;
79 title 'Vehicle Distribution';
80 proc sgpie data=sashelp.cars;
81 format type $type.;
82 styleattrs datacolors=(gold maroon);
83 pie type / startangle=270;
84 run;
NOTE: The SGPIE procedure is pre-production for this release.
ERROR: Path "/var/tmp/saswork/SAS_work644500006EE0_sassvr01/#LN00218" does not exist.
NOTE: PROCEDURE SGPIE used (Total process time):
real time 0.14 seconds
cpu time 0.04 seconds
ERROR: The file /var/tmp/saswork/SAS_work644500006EE0_sassvr01/_7F7C41BB5B02C4A8FA9058EC606E942.svg does not
exist.
ERROR: The file /var/tmp/saswork/GBR/SAS_work644500006EE0_sassvr01/_85F370F91D7F94ABB0E6874F94AF844.svg does not
exist.
NOTE: There were 428 observations read from the data set SASHELP.CARS.
Any ideas ?
I've tried that @JosvanderVelden but I get the same error.
Have tried the same code in a VM running SAS University Edition and it works fine there so not a straight forward code issue. Will see if the sas admin can figure it out, or contact sas support for assistance.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.