BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MaT721
Calcite | Level 5

Hello to all,

 

I would like to save a graphic produced by proc sgplot on Viya in a personal folder, but I have no idea how to do it.

 

Any suggestions?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

I'm assuming you're using SAS Studio using Viya?

 

Does the standard version work for you, assuming you modify the path to your location?

To find the path, you can go to the Servers Files and Folders pane, navigate to the folder you want to save it to, right click the location and find the path under properties.

 

ods graphics / reset imagename="CarGraphicExample";
ods _all_ close;
ods html style=statistical
  path="/home/fkhurshed/Demo1"
  gpath="/home/fkhurshed/Demo1" (url=none)
  file="report.html";
  
  
proc sgplot data=sashelp.cars;
scatter x=mpg_city y=mpg_highway;
run;

ods html close;

@MaT721 wrote:

Hello to all,

 

I would like to save a graphic produced by proc sgplot on Viya in a personal folder, but I have no idea how to do it.

 

Any suggestions?

 

Thanks.


 

 

View solution in original post

1 REPLY 1
Reeza
Super User

I'm assuming you're using SAS Studio using Viya?

 

Does the standard version work for you, assuming you modify the path to your location?

To find the path, you can go to the Servers Files and Folders pane, navigate to the folder you want to save it to, right click the location and find the path under properties.

 

ods graphics / reset imagename="CarGraphicExample";
ods _all_ close;
ods html style=statistical
  path="/home/fkhurshed/Demo1"
  gpath="/home/fkhurshed/Demo1" (url=none)
  file="report.html";
  
  
proc sgplot data=sashelp.cars;
scatter x=mpg_city y=mpg_highway;
run;

ods html close;

@MaT721 wrote:

Hello to all,

 

I would like to save a graphic produced by proc sgplot on Viya in a personal folder, but I have no idea how to do it.

 

Any suggestions?

 

Thanks.


 

 

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 1022 views
  • 0 likes
  • 2 in conversation