Help using Base SAS procedures

Copying files from local machine to Server

Reply
Contributor
Posts: 29

Copying files from local machine to Server

Hello All,

I want to copy files from my local machine to SAS Server using EG, My SAS Server is on Windows Server

SAS Super FREQ
Posts: 8,743

Re: Copying files from local machine to Server

Hi:

  The regular click path to do this in EG 7.1 is: Tasks --> Data --> Upload Data Files to Server. But if the choice is grayed out, you will need to work with your SAS Administrator -- they may not want you uploading files to the server and may have reserved this ability to administrators.

cynthia

Contributor
Posts: 29

Re: Copying files from local machine to Server

Hi Cynthia

Thanks for your reply

Is there any SAS code to do that operation automatically instead of doing manually.

Super User
Posts: 3,110

Re: Copying files from local machine to Server

It is only be possible if the SAS server can reference your local machine drives. Talk to your IT admin folks. Often they don't allow this for security reasons. Another possibility would be to have a common folder location where a network share would be accessible to both you and the SAS server (\\server\common share\Myfolder)

Super User
Posts: 6,946

Re: Copying files from local machine to Server

To transfer files, several methods may be used

- Use EG, as described

- if SAS is present on both hosts in question, and CONNECT is licensed, (only) SAS datasets can be up/downloaded

- use a file transfer method (SFTP, PuTTY, ...) tro transfer files. Most servers have the ssh server daemon installed and running. Windows servers may be quite a hassle, though, because of licensing and the intrinsic dumbness of Windows as such.

- use a shared network resource visible to your client and the server

- mount a server resource on your local PC

- mount a resource of your local PC on the server

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 4 replies
  • 372 views
  • 3 likes
  • 4 in conversation