I need to move/copy a csv file from server to desktop(local pc) with sas code, can i have sas code to do this ?
(generally for one time thing i just use winscp to drag and drop, but now i need code)
There's a post on the SAS blogs about this. Does that help?
Unless your SAS server can "see" your local PC drive, that is there is a network share available on the SAS server that points to your local drive then a SAS server code solution isn't possible and that includes @paulkaefer's suggestion.
I'm not familiar with WINSCP but I suspect its doing things the other way around - it "see's" your server drive from your PC. With EG there is normally no local SAS to be able to do something similar. Please advise if you also have local SAS on your PC as that may be an option.
If said SAS code needs to run on a server, you need to have a FTP/SSH daemon (service) running on your local PC. Then you can use the usual suspects on the server to connect to your local PC.
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.
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.