Usage Note 35064: Network drives are not recognized by the SAS® PC File Server when the server is installed as a service
When you import network files with the SAS PC File Server, you can receive the following error:
ERROR: CLI error trying to establish connection: [Microsoft]
[ODBC Excel Driver] '(unknown)' is not a valid path. Make sure
that the path name is spelled correctly and that you are
connected to the server on which the file resides.
ERROR: Error in the LIBNAME statement. Connection Failed.
See log for details.
This problem occurs when the SAS PC File Server is installed as a service and the path specifed for either the datafile or the outfile parameters is a named network drive, as shown in the following example:
proc import dbms=excelcs out=temp1
datafile='j:\sastest\sam64.xls' replace;
port=8621;
server='your-server.com';
sheet='one';
run;
proc export dbms=excelcs data=temp1
outfile='j:\sastest\sam64.xls' replace;
port=8621;
server='your-server.com';
sheet='one';
run;
The problem occurs because network drives are mapped at when a users logs on, and services do not recognize these mapped drives. To circumvent the problem, do one of the following:
- Specify the Universal Naming Convention in either the DATAFILE= option or the OUTFILE= option, both of which include the server name in the path, as shown in this example:
proc import dbms=excelcs out=temp1
datafile='\\my-server\sastest\sam64.xls' replace;
port=8621;
server='your-server.com';
sheet='one';
run;
proc export dbms=excelcs data=temp1
outfile='\\my-server\sastest\sam64.xls' replace;
port=8621;
server='your-server.com';
sheet='one';
run;
- Start the SAS PC File Server manually.
The server should now recognize network paths because the drives have been mapped prior to restarting the SAS PC File Server.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to PC Files | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS2M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS2M0 | |
Microsoft® Windows® for x64 | 9.2 TS2M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
When you run the SAS PC File Server as a service, the server does not recognize mapped network drives. You must use Univeral Naming Convention (UNC) names that point directly to the network server.
Type: | Usage Note |
Priority: | |
Topic: | Data Management ==> Data Sources ==> External Databases ==> MS Access Data Management ==> Data Sources ==> External Databases ==> MS Excel
|
Date Modified: | 2009-10-22 09:44:58 |
Date Created: | 2009-03-06 17:22:51 |