BookmarkSubscribeRSS Feed
chill1984
Calcite | Level 5

I am using EG to connect to a remote server. I am running code in a program to generate a graph.  The graph (.png file) is written to my Project folder on the remote server under Files in the Server List. I am trying to copy/export the .png file to my local computer. I do not have SAS installed locally so my local computer does not show up on the server list. Does anyone know how I can move the graph files (.png) to my local computer using EG? Thanks. Code I am using is:

ods listing gpath='/mnt/Projects/amin-sid';

ods graphics on;

proc sgplot data=HospLevelData2 noautolegend;

scatter x=totcost_mean y=los_mean;

xaxis label='Mean total cost';

symbol1 value=dot h=1;

title 'Mean LOS vs. cost, hospital-level';

run;

ods graphics off;

1 REPLY 1
SASKiwi
PROC Star

Your program indicates that your remote SAS server is Unix. That makes it harder to copy files to your PC but not impossible. EG contains a task for copying SAS data but this doesn't include external files like PNGs.

Using FTP is one possible option as both Unix and Windows have this capability. You would need the ability to be able to logon remotely to the Unix server to use this though and you would have to do this from a Windows command line or by using one of the many freely-available FTP apps.

Another option would be to allow the server folder to be mapped from the Windows environment. This requires your Unix admin to set it up, assuming that they agree to it.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1077 views
  • 4 likes
  • 2 in conversation