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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.