Help using Base SAS procedures

SAS 9.2 and LIBNAME to ACCESS Database

Reply
N/A
Posts: 0

SAS 9.2 and LIBNAME to ACCESS Database

In SAS 9.1.3 I wrote:

libname crown 'D:\Home\Tania\Biomassas\Crown ratio\arvores.mdb';

and I had the acess to the database and it´s tables. Now I´m using SAS 9.2 and Office 2007 and I can´t do it. If I run the same thing, the Log message is:

ERROR: The ACCESS engine cannot be found.
ERROR: Error in the LIBNAME statement.

If I try to create a New Library, I get the message:

ERROR:The Access engine cannot be found.
Check the SAS Log for possible additional information

Can some one tell me what I am doing wrong?

Thank you
Super Contributor
Posts: 273

Re: SAS 9.2 and LIBNAME to ACCESS Database

Posted in reply to deleted_user
This is due to the facility you use
A libname has a libref and a engine
in general v9 is subtitued automatically
but how can sas guess that it is a access microsoft file

libname a access "d:\..." ;

will work (tested)

without mentionning the engine like excel ole odbc or access how can SAS guess?

HTH
Andre
Super Contributor
Posts: 273

Re: SAS 9.2 and LIBNAME to ACCESS Database

Posted in reply to deleted_user
And the second aspect is
a access file must preexist before adding inside a new "table"
open an empty access 2007 file and retry

Andre
N/A
Posts: 0

Re: SAS 9.2 and LIBNAME to ACCESS Database

I have tried to run:

LIBNAME crown ACCESS "D:\Home\Tania\Biomassas\Crown ratio\arvores.mdb";

and I get the same error message.

There are several tables in the database and if I import one using the import data I have no problem. If I try to run:

proc import table="crown.res_cr2" out=cr dbms=access replace;
database="D:\Home\Tania\Biomassas\Crown ratio\arvores.mdb" ;

I get the message:
ERROR: DBMS type ACCESS not valid for import.
Super Contributor
Posts: 345

Re: SAS 9.2 and LIBNAME to ACCESS Database

Posted in reply to deleted_user
Use proc setinit to verify that "SAS/ACCESS Interface to PC Files" is licensed.
N/A
Posts: 0

Re: SAS 9.2 and LIBNAME to ACCESS Database

Posted in reply to andreas_lds
yes, I have SAS/ACCESS interface to Pc files licensed.
Super Contributor
Super Contributor
Posts: 3,174

Re: SAS 9.2 and LIBNAME to ACCESS Database

Posted in reply to deleted_user
You didn't mention details about your OS platform - here is a related SAS NOTE from the SAS support website I found by doing a SEARCH with your symptom message:

Usage Note 33228: An error occurs when you use SAS® 9.2 to import or export Microsoft Excel or Access files in the Windows x64 and Windows Vista 64 environments
http://support.sas.com/kb/33/228.html


Scott Barry
SBBWorks, Inc.
N/A
Posts: 0

Re: SAS 9.2 and LIBNAME to ACCESS Database

I,m working on a PC with Windows 7 and Office 2007.
I´ve tried using the exemples on the Usage Note 33228 and I´m still geting an error message.
I´v found that my port is 8561, the SASSERVERNAME = 'Local' and the SASHOSTNAME = 'localhost'. I tried to run;

proc import dbms=accesscs out=AV1 replace table="SAS_1rot";
port=8561 ;
server='local.localhost.com';
database="D:\Home\Tania\Bases de Dados Eucalipto\Alto do Vilão\Eglob_AVilao.mdb";
run;

But I get:
ERROR: Failed to connect to the Server: local.localhost.com.

If I run:

libname crown pcfiles server='local.localhost.com' port=8561
path="D:\Home\Tania\Bases de Dados Eucalipto\Alto do Vilão\Eglob_AVilao.mdb";
run;

I get:
ERROR: Unable to connect to server. Please examine the pcfiles.log file for more information.
ERROR: Error in the LIBNAME statement.
Super Contributor
Super Contributor
Posts: 3,174

Re: SAS 9.2 and LIBNAME to ACCESS Database

Posted in reply to deleted_user
For using your local machine and using an installed ACCESS database, there is not likely to be a sub-domain "local." so you should only use either "localhost" or "0.0.0.0" which you should be able to PING on your machine.

Scott Barry
SBBWorks, Inc.
N/A
Posts: 0

Re: SAS 9.2 and LIBNAME to ACCESS Database

I´v tried that and I´m still geting the same error message.
I´ve been doing some research in my computer and I have "SAS/ACCESS Interface to PC Files" licensed and instaled, but I do not have the SAS PC Files Server. Could that be the problem? And if so, how do I get it?
Super Contributor
Super Contributor
Posts: 3,174

Re: SAS 9.2 and LIBNAME to ACCESS Database

Posted in reply to deleted_user
Suggest you open a SAS technical support track to address your problem symptom.

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 10 replies
  • 624 views
  • 0 likes
  • 4 in conversation