BookmarkSubscribeRSS Feed
xjin19
Calcite | Level 5

Hi everyone,

I am using a Linux version of SAS Enterprise Guide 5.1, remotely connected from a Win7 platform. How to access data files saved on the PC?

The following command doesn't work:

libname custfm pcfiles path="C:\Program Files\SASHome\SASEnterpriseGuide\5.1\Sample\Data\as_products.xls";

ANd the error message is like this:

311 libname custfm pcfiles path="C:\Program Files\SASHome\SASEnterpriseGuide\5.1\Sample\Data\as_products.xls";
ERROR: The SERVER= option is required for establishing a connection through the SAS/ACCESS Interface to PC Files.
ERROR: Error in the LIBNAME statement.

 

But I can't see any local server information from the Server list.

Thanks.

1 REPLY 1
SASKiwi
PROC Star

Your SAS code in EG is running on a remote Linux SAS server that is trying to reference your local PC drive via the SAS PC File Server. Where is the SAS PC File Server running? You need to identify the name of it on your LIBNAME statement.

 

An easier way to import Excel files in EG is via the File / Import Data menu option. Then you don't need to work through all of the setup stuff required for doing the same thing in SAS code. 

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!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 862 views
  • 0 likes
  • 2 in conversation