BookmarkSubscribeRSS Feed
Calcite | Level 5



I am trying to export a SAS dataset stored on one of connected servers to a different one. I am able to do it with the Share -> Export option in SAS EG (, however I was wondering if there is an alternative way to do it programmatically. I have tried using proc copy, fcopy and data step but all result in 'Insufficient Authorization to Access' error.


Thank you in advance! 


Unfortunately it is a restriction of EG that you can only connect to one SAS server at a time. You can open two EG sessions, each talking to a different SAS servers but the sessions can't talk to each other.


One solution is available if both SAS servers have SAS/CONNECT installed and licensed. In your EG session you can then SIGNON to a secnd SAS server and use PROC UPLOAD to copy SAS data. You can confirm if you have SAS/CONNECT or not by running this:

proc setinit;

proc product_status;


Jade | Level 19

The fcopy function should work, but the sas-server needs access to the other server. So talk to the admins, if the connection is possible at all.

Super User

Your SAS/server administrators can provide cross-mounts of the respective directories (unless they are prevented from doing this by security considerations), which would allow the use of FCOPY, and if you define LIBNAMEs for the remote directories, PROC COPY.


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!

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.

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
  • 3 replies
  • 4 in conversation