BookmarkSubscribeRSS Feed
JonathanWill
Obsidian | Level 7

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 ?

 

 

2 REPLIES 2
JosvanderVelden
SAS Super FREQ
Can you close the SAS Studio session using signout.
Then close the browser.
And in a new browser window connect again to the server and try again?

I had no issue with your code example using SAS Studio from SAS OnDemand for Academics (welcome.oda.sas.com)

Best regards, Jos
JonathanWill
Obsidian | Level 7

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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 2 replies
  • 1186 views
  • 0 likes
  • 2 in conversation