BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MariaD
Barite | Level 11

Hi folks,

 

We have EG 7.1 64 bits connecting with our Unix server (SAS 9.4 M5). I know that you can export to .mdb using point-and-click options if you have Office 64 bits installed or Microsoft ACE 64-bits. We have license PC Files but we don't have it configure in a Windows machine. So, there is any way to export, using programming, to .mdb? For example, for Microsoft Excel exists the option to "export" using ODS Excel.

 

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

The path can be anywhere that the SAS PC File Server recognises. If it is on your SAS Unix server then a folder share would need to be created on Unix and accessible from Windows. 

View solution in original post

5 REPLIES 5
jebjur
SAS Employee

If you want to export to MS Access from SAS \ Eguide using code, then you can use PROC EXPORT if you license SAS/Access to PC Files on the SAS server and you also install a piece of software called PC Files Server on a network PC. The documentation for PC Files Server (including examples of the code you would use) can be found here:

 

https://go.documentation.sas.com/?docsetId=pcfsicg&docsetTarget=n1qhkerbd4k9qun1oome59qr7f5y.htm&doc...

 

In this example, you export data from the SAS data set WORK.SASCUSTOMERS to create a new table, Customers_2, which is located on same Windows machine as the SAS PC Files Server.

PROC EXPORT DATA=WORK.SASCUSTOMERS
     OUTTABLE='Customers_2'
     DBMS=ACCESSCS REPLACE ;
     DATABASE='mydrive:\yourAccessdirectory\AnnualFiles.accdb'; 
     SERVER='myPCFServer.com';
     PORT=9621;
     DBDSOPTS='INSERTBUFF=15';
 RUN; 

 

MariaD
Barite | Level 11
Thanks, we have PC Files licensed. Is it possible to install PC File Server on every client computer in addition to SAS EG? Or only in one Windows computer?
SASKiwi
PROC Star

The Windows machine you install the SAS PC File Server on needs to be accessible from your SAS Unix server, including the port you will use to communicate (often controlled by firewall rules). For that reason it may be easier to share a single machine. At least that way the SAS code you use would be the same for all users - same server name and port number.

MariaD
Barite | Level 11

Thanks @SASKiwi. One last question. The path where the file will be create is on Windows (where PCFF is installed or visible through network)? Or is it possible to define a path on my SAS Unix server too?

SASKiwi
PROC Star

The path can be anywhere that the SAS PC File Server recognises. If it is on your SAS Unix server then a folder share would need to be created on Unix and accessible from Windows. 

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!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 5 replies
  • 4684 views
  • 2 likes
  • 3 in conversation