SAS Enterprise Guide

Desktop productivity for business analysts and programmers
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Mark5
Calcite | Level 5

Please can someone assist.

 

i want to export a table  as an .mbd file but it is not givving me the option to.

 

I do have access 2016 installed aswell.

 

Am i missing something or do i need to enable something for this tio reflect.

 

i have attached a screenshot.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Since you only have the "modern" xlsx Format available (which is openly documented and consists of a bunch of xml files in a zip archive), I guess you are lacking the necessary module from Microsoft that is needed to create the older Office formats (xls and mdb).

Have your EG installation checked for this. (in EG, Help - Configuration, look for MDAC version)

As a quick workaround, I suggest you export to a csv file and import that into Access.

View solution in original post

8 REPLIES 8
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Really can't state this enough here, mdb is ancient, drop the file format.  If you have to use Access at all, use accdb, mdb hasn't been used since 2003.

As for why you can't see it, can't even tell what SAS you are using, looks to be some sort of wizard.  This will show you the code:
https://communities.sas.com/t5/SAS-Data-Management/Export-SAS-9-4-file-to-Access-mdb/td-p/255055

 

Mark5
Calcite | Level 5

Hi

 

Thank you for the response, i am using EG 7.1. i have tried code as well. see below:

 

PROC
EXPORT
 DATA= ALL_POLICIES
            OUTTABLE= "POLICIES SPLIT"
            DBMS=ACCESSCS  
            REPLACE;
  DATABASE="C:\Users\abmc677\Desktop\BookSPLIT.accdb";
run
;

 

Then i get the error: ERROR: Server Name is invalid or missing.

 

Thanks

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Try:

proc export data=all_policies
            outtable="policies split"
            dbms=access
            replace;
   database="<path>/booksplit.accdb";
run;

http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#p1d0tocg3njhmfn1d4...

 

accesscs is trying to use pcfiles. 

Mark5
Calcite | Level 5

i tried

 

proc export data=all_policies
            outtable="policies split"
            dbms=access
            replace;
   database="C:/Users/abmc677/Desktop/booksplit.accdb";
run;

 

get the following error: ERROR: DBMS type ACCESS not valid for export.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Is your EG running on a Unix server?  All I can think of is your install/run area are different, and one or the other is lacking in the necessary conversion software.  If it runs on a Unix server which doesn't have Office and doesn't have PCFiles server, then you need to get pcfiles server installed and setup.  

Maybe someone else here can provide something more specific.

Kurt_Bremser
Super User

Since you only have the "modern" xlsx Format available (which is openly documented and consists of a bunch of xml files in a zip archive), I guess you are lacking the necessary module from Microsoft that is needed to create the older Office formats (xls and mdb).

Have your EG installation checked for this. (in EG, Help - Configuration, look for MDAC version)

As a quick workaround, I suggest you export to a csv file and import that into Access.

CaseySmith
SAS Employee

I wanted to add...

 

I suspect you are using 64-bit EG.  EG uses the Microsoft Jet Engine provider to write to the .mdb format.  The Microsoft Jet Engine is 32-bit only, thus only works in 32-bit EG, thus exporting to .mdb (via the client UI) is only available in 32-bit EG.

 

EG's system requirements doc has this note:

 

"Note: On 64-bit operating systems, SAS recommends using the 32-bit version of SAS Enterprise Guide for greater compatibility with data providers. See reference, SAS Deployment Wizard and SAS Deployment Manager 9.4 User's Guide.pdf for more information."

 

Related, but applies to import rather than export... in the EG help (Help->SAS Enterprise Guide Help), the "Working with Data: File types that SAS Enterprise Guide reads and writes" topic has this note:

 

"In the 64-bit version of SAS Enterprise Guide, you can import Microsoft Access files (*.mdb, *.accdb) only if the 64-bit version of Microsoft Access or the 64-bit version of the Microsoft Office System (ACE) Driver is installed. Similarly, if you are running the 32-bit version of SAS Enterprise Guide, then you must have the 32-bit version of Microsoft Access or the Microsoft Office System (ACE) Driver in order to import Microsoft Access files."

 

Note: The comments above apply to the client, when the client is performing the import or export (rather than SAS code on the server). The server (ex. processing proc import and proc export) has different, but similar requirements.  See proc import/export doc for those.

 

Casey


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

Mark5
Calcite | Level 5

Thank you for the reply, this explains a lot,

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 8 replies
  • 7486 views
  • 1 like
  • 4 in conversation