BookmarkSubscribeRSS Feed
telligent
Quartz | Level 8

I made an SGPLot image and it went there, but I have no idea how to find it. 

NOTE: Listing image output written to /sastmp/saswork/SAS_workXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thanks.
1 REPLY 1
Patrick
Opal | Level 21

@telligent wrote:

I made an SGPLot image and it went there, but I have no idea how to find it. 

NOTE: Listing image output written to /sastmp/saswork/SAS_workXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Thanks.

This is likely the path to your compute server Work directory. You can verify using code.

data _null_;
 put "Work loc:  %sysfunc(pathname(work))";
run;

 

Often your Explorer Home doesn't start at root. 

In my environment Home is /create-export/create/homes/<&sysuserid> and I can only drill into subfolders but not traverse to other locations.

Patrick_0-1728361910216.png

 

You can via SAS code copy objects from the path under WORK to a location under Home or you can also directly direct the output to there or you can just download the Report in SAS Studio to your local environment. 

 

Below some sample code for SAS Studio for writing the output directly to Home

/* Sample data */
data sample_data;
    input X Y;
    datalines;
1 2
2 3
3 5
4 7
5 11
;
run;

/* Specify the output path */
ods html file="&_USERHOME/scatter_plot.html";

/* Create a scatter plot */
proc sgplot data=sample_data;
    scatter x=X y=Y;
    title "Scatter Plot of Sample Data";
    xaxis label="X Axis";
    yaxis label="Y Axis";
run;

ods html close;



 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Discussion stats
  • 1 reply
  • 1054 views
  • 0 likes
  • 2 in conversation